I installed ImageMagick 6.3.8 on my Linux computer because it was generating
bad PNG images.  My Windows computer was generating good PNG images using
the same files and the same Imagemagick command.

After installing version 6.3.8, I logged the root user out, logged myself
in, ran my scripts and found that the image problem was solved.  Excellent.

However, I have a crontab that runs my scripts every night to generate new
images.  When cron runs the script, it uses the pre-existing version of
Imagemagick and the images are poor again.

I installed from source as the root user and followed these instructions (
http://www.imagemagick.org/script/install-source.php#unix).  I chose to
install Imagemagick 6.3.8 in /usr/share/ImageMagick-6.3.8/ because I found a
pre-existing /usr/share/ImageMagick-6.2.2/ directory.

What I've noticed is that /usr/bin/ contains the Imagemagick utilities like
"mogrify" and I'm guessing that cron is using those and ignoring what's in
/usr/share/ImageMagick-6.3.8/utilities/.

I've tried including /usr/share/ImageMagick-6.3.8/utilities/ in the PATH
variable for cron.  That doesn't work.  I tried setting the SHELL variable
to /bin/bash for cron.  That didn't work.

Linux administration is not my strength although I want to become
competent.  Can anyone give me a hint regarding why I can login and invoke
"mogrify -version" and see "Version: ImageMagick 6.3.8 02/11/08 Q16
http://www.imagemagick.org"; and when I set a crontab to invoke "mogrify
-version" it sees "Version: ImageMagick 6.2.2 01/23/06 Q16
file:/usr/share/ImageMagick-6.2.2/doc/index.html"?

Thanks for your help.

Peter
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to