Closed asecondwill closed 10 years ago
closing this as its a homebrew issue with imagemagick / mavericks.
running
identify -format '%wx%h,1' 'dog.jpg'
gives me errors like
identify: unable to load module `/usr/local/Cellar/imagemagick/6.8.9-1/lib/ImageMagick//modules-Q16/coders/jpeg.la': file not found @ error/module.c/OpenModule/1282.
great.
Had same issue with image_magic that was breaking our paperclip functionality in production, but not in development (weird, I know). Yet even after removing imagemagick from our gemfile and Gemfile.lock locally (running bundle install and all that stuff) and then deploying back to production on heroku, the error persisted in production! (weird, I know).
What ended up doing the trick was running: $ heroku repo:purge_cache -a myAppName (Taken from: https://github.com/heroku/heroku-repo#purge_cache)
When you deploy your app, Heroku caches some things like your assets and installed gems in order to speed up deployment. Although this is a great feature, it can have side-effects sometimes, and in this case, it seems that something about the imagemagick gem got "stuck" in production's cache, which is why purging solved the issue for us (since purging will make your app build itself from scratch on your next deployment)
@asecondwill did you ever find a solution to this issue?
Hi @mikesmayer - Yes i did get past it. It was with image magic. I can't remember exactly how it got fixed except it was a case of rebuilding IM to get the file type support.
http://stackoverflow.com/questions/23665735/cover-papercliperrorsnotidentifiedbyimagemagickerror http://stackoverflow.com/questions/9586048/imagemagick-no-decode-delegate
i have the same issue but its recognizing the .gif but not other formats i have installed all the dependencies
I was merrily chatting to my self over on https://github.com/thoughtbot/cocaine/issues/28 when i realised the ticket was closed. so reposted here. Appologies if that was the wrong thing to do.
I'm using paperclip 4.1 and rails 4.0.2 & ruby 2.1.1 - i get the error
Cover Paperclip::Errors::NotIdentifiedByImageMagickError
I am running on osx 10.9, and i've checked my imagemagick by doing:
I've got
Paperclip.options[:command_path] = "/usr/local/bin/"
set right at the top of my development.rb environment
Somebody saved themselves with this in the application.rb:
`Paperclip.options[:command_path] = "/usr/local/bin/identify"
but that didn't work for me.
I saw that somebody found running:
helped them out, but it didn't make any difference for me.
I tried
from https://github.com/thoughtbot/paperclip/issues/1205
which all happened 1st time except: Error: Permission denied - /usr/local/Cellar/libiconv/1.14
Ill check that out and report back.
So i got past that with
sudo chown -R
whoami/usr/local
but the error persist.Just found https://github.com/thoughtbot/paperclip/issues/1289 ticket, where some people had issues with a custom geometry method. I don't have one of those, so not that.
I turned on the logs
and here is the output: