public marks

PUBLIC MARKS from imelgrat with tags "Sample Code" & "php image resize"

17 July 2007 16:30

Resize image proportionally (cropping it if necessary)

This function will resize an image to the specified width and height without distorting it and in most cases without adding black regions to the image (by cropping the image to the desired size). It is very useful for creating picture thumbnails of a given size, regardless of the image’s original dimensions.