Archive | Documentation RSS feed for this section

image_resize_dimensions

Retrieve calculated resized dimensions for use in imagecopyresampled().Calculate dimensions and coordinates for a resized image that fits within a specified width and height. If $crop is true, the largest matching central portion of the image will be cropped out and resized to the required size.

2001

Continue reading

image_resize

Scale down an image to fit a particular size and save a new copy of the image.The PNG transparency will be preserved using the function, as well as the image type. If the file going in is PNG, then the resized image is going to be PNG. The only supported image types are PNG, GIF, and JPEG.

1999

Continue reading

image_make_intermediate_size

Resize an image to make a thumbnail or intermediate size.The returned array has the file size, the image width, and image height. The filter ‘image_make_intermediate_size’ can be used to hook in and change the values of the returned array. The only parameter is the resized file path.

1995

Continue reading