On Monday 30 August 2004 08:02, Brent Clements wrote:
> I have a class that only accepts jpegs and png's but all of my images(we
> have over 200 of them) are in gif format.
>
> Is there a way to convert from gif to jpeg on the fly without outputting
> the new image to file or the screen or using a system call to run the
> gif2XXX utilities?

Meaning you want to assign the image data to a variable? ...

> I've tried imagejpeg(imagecreatefromgif($image)) but it outputs the image
> to the html screen as it should.
>
> Granted, I could pull some neat output buffering trick but I want to know
> if you guys think there is an easier way. And if so, point me in the right
> direction

... if so then capturing the output buffer is the only way (that I'm aware 
of). 

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Give me a Plumber's friend the size of the Pittsburgh dome, and a place
to stand, and I will drain the world.
*/

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

Reply via email to