[PHP] Re: Converting PCX to ...

2002-07-09 Thread Richard Lynch

I'm writing a reporting system and I have a problem.

I need to insert PCXs into a PDF (using PDFLib), but it doesn't support
PCXs.

So, to get round the problem, I need to convert the PCXs to JPGs or GIFs

Does anyone know of a piece of PHP that can do this inline, (by that I mean,
can be called and run in PHP script), because the images will have additions
and modifications on a regular basis; and they come as PCXs.

I think you will be stuck with using http://php.net/exec to run some
external process to convert them.

Image Magik seems to convert almost every format known to man...

-- 
Like Music?  http://l-i-e.com/artists.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Converting PCX to ...

2002-07-09 Thread BB

I got a problem with that!

I've written a batch file that sits in the same dir as the PHP script and
when I exec it, it doesn't work!  I've thouroghly thrashed the batch file
for errors and it came up ok every time.  if I echo the exec it only returns
the first line of the batch file.

Anyone?

Richard Lynch [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 I'm writing a reporting system and I have a problem.
 
 I need to insert PCXs into a PDF (using PDFLib), but it doesn't support
 PCXs.
 
 So, to get round the problem, I need to convert the PCXs to JPGs or GIFs
 
 Does anyone know of a piece of PHP that can do this inline, (by that I
mean,
 can be called and run in PHP script), because the images will have
additions
 and modifications on a regular basis; and they come as PCXs.

 I think you will be stuck with using http://php.net/exec to run some
 external process to convert them.

 Image Magik seems to convert almost every format known to man...

 --
 Like Music?  http://l-i-e.com/artists.htm




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: Converting PCX to ...

2002-07-09 Thread Jay Blanchard

[snip]
I've written a batch file that sits in the same dir as the PHP script and
when I exec it, it doesn't work!  I've thouroghly thrashed the batch file
for errors and it came up ok every time.  if I echo the exec it only returns
the first line of the batch file.
[/snip]

I have found that even though the batch, shell, or other procedural call in
an exec(), system(),  sits in the same directory as the PHP script you must
include the /full/path/to/the/script in order for it to work properly.

HTH!

Jay



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php