Actually I don't believe this is exactly right.... from playing around with Photoshop you can see that you change an image's resolution under Image -> Image Size and if you turn off "Resample Image", it will retain the same pixel dimensions. GIF's are limited to 72dpi (or ppi if you prefer.. pixel per inch) which matches what is typically displayable or desirable for web content. But when you go to print that webpage, you really see the lack of quality in that GIF image. If you use a JPG and set it for around 300 dpi/ppi, it prints out a LOT nicer. So there's a real easy answer to this question... yes, you can change DPI on the fly when converting JPG -> GIF... the downside is that you're converting to 72dpi whether you like it or not because that's the GIF standard. If somebody has more or better information on this, I'd love to hear it but this is how it is as far as I know and have experienced. -TG = = = Original 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 ___________________________________________________________ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php