5 Answers
5

If you are hosting your application with Passenger, keep in mind that Passenger does not have the same $PATH variable as your logged in user. A good way to check whether Passenger can see the ImageMagick commands is to add this to one of your erb templates:

<%= `which convert` %>
<%= `echo $PATH` %>

and to compare the results with running the same commands in your terminal. Another possibility is ImageMagick can't find the libs it needs. In this case, you may need to export another variable to let ImageMagick know where the libs are:

gem install rmagick Building native extensions. This could take a while... Successfully installed rmagick-2.13.1 1 gem installed Thanks! Just ran all the above. Does that mean rmagick was actually not installed?
–
MarkyJul 27 '10 at 16:08

hi, thanks for your reply. yes I have ImageMagick installed on my machine. When I run the 'convert' command in the terminal it runs fine. any other ideas? it's clearly the path, but I have no idea how to change it.
–
MarkyJul 12 '10 at 14:54

ah, but if I run 'identify' from the command line it also runs fine no matter what folder I run it from, does this mean there is another problem?
–
MarkyJul 12 '10 at 14:55