NYCPHP Meetup

[nycphp-talk] one question about resize the image

chad qian nynj.tech at hotmail.com
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?
 
Thanks!
 
chad
 
_________________________________________________________________
Watch “Cause Effect,” a show about real people making a real difference.  Learn more.
http://im.live.com/Messenger/IM/MTV/?source=text_watchcause
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20080324/b93092f6/attachment.html>


More information about the talk mailing list