In my Rails app, I just removed Rmagick
and added Minimagick
. Rmagick was too heavy. Things worked fine with Rmagick but in minimagick I get the following error :
MiniMagick::Invalid: `identify /tmp/mini_magick20150518-10411-1qz42x8` failed with error:
identify.im6: no decode delegate for this image format `/tmp/mini_magick20150518-10411-1qz42x8' @ error/constitute.c/ReadImage/544.
from /home/pubudu/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/mini_magick-4.2.4/lib/mini_magick/image.rb:200:in `rescue in validate!'
The file url :
[8] pry(main)> file.file.file
=> "/home/pubudu/Projects/istockseller/public/store/photos/thpubs/istockseller-13642162-wallhaven-61582.jpg"
The code im trying to run :
MiniMagick::Image.read(file.file.file).first
--with-lqr=yes
– Manymanya