我正在使用回形針創建上傳圖片和調整圖片大小。這個設置工作正常。我可以顯示上傳的圖像。當我嘗試調整上傳的圖像時,問題就出現了。無法調整上傳圖片的大小
下面是從模型文件
has_attached_file :photo,
:size => {:small => "150x150>"}
片斷當我試圖上傳我得到這個錯誤的圖像。
Photo /var/folders/gm/gm-SegRMHuOkSlYtTMkO8U+++TI/-Tmp-/file.jpg is not recognized by the 'identify' command.
我敢肯定,該文件爲JPG。下面是該文件的命令
file.jpg: JPEG image data, JFIF standard 1.01, comment: "CREATOR: gd-jpeg v1.0 (using IJ"
使用您建議的代碼,我會得到上述相同的錯誤。 – Tristar 2012-07-12 08:21:59