WP_Image_Editor::multi_resize( array $sizes )

Resize multiple images from a single source.

Parameters Parameters


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

  • 'size'
    • 'width'
      (int) Image width.
    • 'height'
      (int) Image height.
    • 'crop'
      (bool) Optional. Whether to crop the image. Default false.

Top ↑

Return Return

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

Top ↑

Source Source

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

	abstract public function multi_resize( $sizes );

Top ↑

Changelog Changelog

Version Description
3.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

Top ↑

You must log in before being able to contribute a note or feedback.