WP_Image_Editor::multi_resize( array $sizes )

Resize multiple images from a single source.


Parameters

$sizes

(Required) An array of image size arrays. Default sizes are 'small', 'medium', 'large'.<br>

  • '...$0'
    (array)
    • 'width'
      (int) Image width.<br>
    • 'height'
      (int) Image height.<br>
    • 'crop'
      (bool) Optional. Whether to crop the image. Default false.<br>


Return

(array) An array of resized images metadata by size.


Source

File: wp-includes/class-wp-image-editor.php

	abstract public function multi_resize( $sizes );

Changelog

Changelog
Version Description
3.5.0 Introduced.