Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

image_make_intermediate_size()

3 tags 1 category

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

Inputs: $file (string): File path. $width (int): Image width. $height (int): Image height. $crop (bool|array): Optional. Image cropping behavior. If false, the image will be scaled (default). If true, image will be cropped to the specified dimensions using center positions. If an array, the image will be cropped using the array to specify the crop location: Field $0 (string): The x crop position. Accepts ‘left’, ‘center’, or ‘right’. Field $1 (string): The y crop position. Accepts ‘top’, ‘center’, or ‘bottom’.

Returns array|false: Metadata array on success. False if no image was created.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…