From owner-freebsd-questions@FreeBSD.ORG Thu Jan 20 05:59:17 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0F6316A4CE for ; Thu, 20 Jan 2005 05:59:17 +0000 (GMT) Received: from mail.freebsd-corp-net-guide.com (mail.freebsd-corp-net-guide.com [65.75.192.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E7E043D49 for ; Thu, 20 Jan 2005 05:59:17 +0000 (GMT) (envelope-from tedm@toybox.placo.com) Received: from tedwin2k (nat-rtr.freebsd-corp-net-guide.com [65.75.197.130]) j0K5xDj05988; Wed, 19 Jan 2005 21:59:14 -0800 (PST) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: , Date: Wed, 19 Jan 2005 21:59:13 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 In-Reply-To: <00d801c4feb4$76546fb0$6900a8c0@madesktop> Importance: Normal Subject: RE: not found Image Magick X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2005 05:59:17 -0000 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" >