At 08:21 AM 1/29/2007, Randal Rust wrote:
I need to find out if I can resample an image and also resample it
using the GD Library. I don't seem to find anything that does it
without creating and storing a thumbnail from the original image.

Right now, I get an image and use getimagesize() to create new values
for the height and width attributes. But that leaves an image that is
less than perfect.

I'd rather not store thumbnails of the images if I can avoid it, but
maybe I can't.

If the images originated from a recent digital camera, a thumbnail image might be stored in the original image. Take a look at the exig_thumbnail() function <http://www.php.net/exit_thumbnail>.

If that is not the case, there are image resampling functions in the GD package. Take a look at the imagecopyresampled() function <http://www.php.net/imagecopyresampled>.

Ken
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to