Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Errno::ENOENT when uploading an image using Carrierwave and MiniMagick

My rails app has an image upload which uses the latest versions of Carrierwave and MiniMagick. It works great on the server, but in my local host which is WEBrick and Windows 7, i get this error when i try and upload an image:

Errno::ENOENT in PostsController#create

No such file or directory - identify -ping C:/Users/Ryan/AppData/Local/Temp/mini_magick20121024-6068-g2bed8.jpg

I go to the path and the image actually exists, i'm not sure what prevents Carrierwave or MiniMagick from reading it.

Any one has an idea?

like image 867
CodeOverload Avatar asked Dec 16 '22 18:12

CodeOverload


1 Answers

Do you have ImageMagick installed? Can you run the identify command manually on the console?

The reason I ask is it appears your error message is what occurs when it can't find the identify commend, which is part of ImageMagick.

like image 85
Jason Noble Avatar answered Jan 13 '23 12:01

Jason Noble