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

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

Reply via email to