Unknown error with Paperclip and ImageMagick - Rails 2 -


i using paperclip , imagemagick upload , generate images in rails 2.2.2 application.

it working fine. when uploading image, different sizes of image gets generated @ time of upload not working. image getting uploaded.

i getting following error in log.

 info  production : [paperclip] /usr/local/bin/identify -format "%w" /www/hosts/{path}   info  production : <paperclip::paperclipcommandlineerror> error while running identify   /www/hosts/{path}/vendor/plugins/paperclip/lib/paperclip.rb:101:in `run' 

i can't understand happening here. checked path of identify using which identify returned user/local/bin/identify.

the paperclip in config as

paperclip.options[:image_magick_path] = "/usr/local/bin" paperclip.options[:command_path] = '/usr/local/bin' 

any idea happening here??

i tried add paperclip custom validation model. think image upload went wrong after validation. have removed it. still not working.

this line of code stops in square_up function.

paperclip.run('identify', args).strip

the paperclip not able process image.img format.

the symlink master.img not generated properly. symlink created master.png , points master.img. symlink should master.img points real image uploaded.

it seems issue imagemagick installation. try find if have installed imagemagick or not, try run convert on console.

$ convert version: imagemagick 6.6.9-7 2014-03-06 q16 http://www.imagemagick.org copyright: copyright (c) 1999-2011 imagemagick studio llc 

you should result above. if above result try upgrade imagemagick version.

libtool cause such errors, try install libtool also.

hope works.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -