[nycphp-talk] one question about resize the image

chad qian at
Mon Mar 24 16:04:43 EDT 2008

I run php to upload/resize images now.But I have one question:
After people upload images, if we want to resize the image,we must maintain the original aspect ratio. This prevents the image from being "stretched" or "squashed".
Now people upload two images.And I need to resize these two images
1) "1.jpg" 40*50
2) "2.jpg" 10*20 
My thought:(size is height and width here)
"1.jpg" or "2.jpg" will be "stretched" or "squashed" if we keep them as same size.
"1.jpg" and "2.jpg" will maintain the original aspect ratio but different size
Is it right?
Watch “Cause Effect,” a show about real people making a real difference.  Learn more.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the talk mailing list