Re: Convert from jpg to gif ... change dpi...

From: Date: Mon, 08 May 2006 13:53:37 +0000
Subject: Re: Convert from jpg to gif ... change dpi...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-235718@lists.php.net to get a copy of this message
At 11:07 PM +0200 5/7/06, Gustav Wiberg wrote:
Hi there! Is there any way of converting a jpg to gif and change dpi on the fly? Best regards Gustav Wiberg
Gustav: It depends how big the fly is. But seriously, yes you can change a jpg into a gif by loading it in as a jpg (imagercreatefromjpeg) and then saving it as a gif (imagegif). See: http://www.weberdev.com/imagegif But, the dpi thing is not meaningful. DPI is how the image is displayed and not something intrinsic within the image itself. The image has simply a size (x by y pixels), and how that image is previewed is outside its purview (I liked that play on words) :-) If you want to change the image's size, then that can be done via magecopyresized. But, you cannot change the DPI of an image. tedd -- -------------------------------------------------------------------------------- http://sperling.com

« previous php.general (#235718) next »