not found Image Magick
Ted Mittelstaedt
tedm at toybox.placo.com
Wed Jan 19 21:59:17 PST 2005
How about:
exec("PATH=$PATH:/usr/local/bin;export PATH;/usr/local/bin/convert
test.pdf test.gif");
exec spawns inheret a rather restricted set of environmental
variables.
Ted
> -----Original Message-----
> From: owner-freebsd-questions at freebsd.org
> [mailto:owner-freebsd-questions at freebsd.org]On Behalf Of
> mappolonia at appolosecure.com
> Sent: Wednesday, January 19, 2005 9:54 PM
> To: freebsd-questions at freebsd.org
> Subject: gs: not found Image Magick
>
>
> I can execute Image Magick convert PDF to jpg from shell with
> no problem. If I try from PHP script, like this:
>
> <?
> exec("/usr/local/bin/convert test.pdf test.gif");
> ?>
>
> I get the following errors:
>
> gs: not found
> convert: Postscript delegate failed `test.pdf'.
> convert: missing an image filename `norden.gif'.
>
> If I try to convert non-pdf files in php script, it works OK.
>
> Any help would be great!
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
>
More information about the freebsd-questions
mailing list