Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jan 2005 21:59:13 -0800
From:      "Ted Mittelstaedt" <tedm@toybox.placo.com>
To:        <mappolonia@appolosecure.com>, <freebsd-questions@freebsd.org>
Subject:   RE: not found Image Magick
Message-ID:  <LOBBIFDAGNMAMLGJJCKNIEBDFAAA.tedm@toybox.placo.com>
In-Reply-To: <00d801c4feb4$76546fb0$6900a8c0@madesktop>

next in thread | previous in thread | raw e-mail | index | archive | help

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@freebsd.org
> [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of
> mappolonia@appolosecure.com
> Sent: Wednesday, January 19, 2005 9:54 PM
> To: freebsd-questions@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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?LOBBIFDAGNMAMLGJJCKNIEBDFAAA.tedm>