Archive | /wp-includes/media.php 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

image_hwstring

Retrieve width and height attributes using given width and height values.Both attributes are required in the sense that both parameters must have a value, but are optional in that if you set them to false or null, then they will not be added to the returned string.

1991

Continue reading

image_get_intermediate_size

Retrieve the image’s intermediate size (resized) path, width, and height.The $size parameter can be an array with the width and height respectively. If the size matches the ‘sizes’ metadata array for width and height, then it will be used. If there is no direct match, then the nearest image size larger than the specified size will be used. If nothing is found, then the function will break out and return false.

1989

Continue reading