image_make_intermediate_size ( $file, $width, $height, $crop = false )

  • (string) $file File path.
  • (int) $width Image width.
  • (int) $height Image height.
  • (bool) $crop Optional. Whether to crop image to specified width and height or resize. Default false.
  • (false|array) False, if no image was created. Metadata array on success.
Defined at:


Resizes an image to make a thumbnail or intermediate size.

The returned array has the file size, the image width, and image height. The {@see '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.

Related Functions

image_get_intermediate_size, get_intermediate_image_sizes, image_resize, wp_make_link_relative, wp_image_matches_ratio

Top Google Results

User discussions

wpseek mobile