ImageMagick: weird issue when called by a cron job
Posted: 2012-01-23T17:56:09-07:00
Hello here,
I am experiencing a weird issue with ImageMagick (vesion 6.7.4-4), in particular with the "convert" command.
While I am logged as root, I am able to make the following simple conversion without any reported error:
If I call the exact same command from a cron job run by root, I get the following error:
Any ideas? This is really weird... I mean, if I run the command via shell manually as root it works just fine, but if I call it as a cron job as root it doesn't...
Any suggestions and thoughts are very welcome!
Thank you.
All the best,
Fab.
I am experiencing a weird issue with ImageMagick (vesion 6.7.4-4), in particular with the "convert" command.
While I am logged as root, I am able to make the following simple conversion without any reported error:
Code: Select all
/usr/local/bin/convert source.pdf destination.gif
Code: Select all
sh: gs: command not found
convert: Postscript delegate failed `/my-path-to/source.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/667.
convert: missing an image filename `/my-path-to/destination.gif' @ error/convert.c/ConvertImageCommand/3016.
Any ideas? This is really weird... I mean, if I run the command via shell manually as root it works just fine, but if I call it as a cron job as root it doesn't...
Any suggestions and thoughts are very welcome!
Thank you.
All the best,
Fab.