Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Galleries » Create error #1

Closed
lgs opened this issue May 29, 2010 · 2 comments
Closed

Galleries » Create error #1

lgs opened this issue May 29, 2010 · 2 comments

Comments

@lgs
Copy link
Contributor

lgs commented May 29, 2010

Hi, I get this error trying to create a new gallery :

2 errors prohibited this gallery from being saved
There were problems with the following fields:

* Image /tmp/mauroleone_275x200,6222,0.jpg is not recognized by the 'identify' command.
* Image /tmp/mauroleone_275x200,6222,0.jpg is not recognized by the 'identify' command.

All the rest seems ok. Do you have any idea of what's going on ?

Thanks in advance
Luca

@rapind
Copy link
Owner

rapind commented May 29, 2010

This is an ImageMagick configuration / path issue. identify is an image magick command used when applying the watermark. Unfortunately it's not always easy to solve.

First make sure your Paperclip.options[:command_path] = "/usr/local/bin" in the initializers/grokphoto.rb is pointing to your ImageMagick bin path (in my case /usr/local/bin".

If that doesn't work you'll need to spend a little more time messing around with environment paths specific to your setup. I.e. passenger, windows, osx, linux, etc. Some people will put the LD_LIBRARY_PATH and DYLD_LIBRARY_PATH into the environment variables, etc. Start googling: imagemagick paperclip identify

Let me know how it works out, and post your solution if you find one.

@lgs
Copy link
Contributor Author

lgs commented May 30, 2010

Thanks for the answer. Setting Paperclip.options[:command_path] = "/usr/bin" was enought to solve. On my Ubuntu 10.4 infact, I have got that LIBRARY on /usr/bin.

Bye
Luca G. Soave

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants