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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux