Re: Convert gif to jpeg on the fly using gd?

From: Date: Mon, 30 Aug 2004 03:22:46 +0000
Subject: Re: Convert gif to jpeg on the fly using gd?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-195143@lists.php.net to get a copy of this message
* Thus wrote Brent Clements: > 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? > > I've tried imagejpeg(imagecreatefromgif($image)) but it outputs the image to the html > screen as it should. > http://php.net/imagejpeg bool imagejpeg ( resource image [, string filename [, int quality]]) Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid!

« previous php.general (#195143) next »