WP_Image_Editor::multi_resize( array $sizes ): array

In this article

Resize multiple images from a single source.

Parameters

$sizesarrayrequired
An array of image size arrays. Default sizes are ‘small’, ‘medium’, ‘large’.
  • ...$0 array
    • width int
      Image width.
    • height int
      Image height.
    • crop bool|array
      Optional. Whether to crop the image. Default false.

Return

array An array of resized images metadata by size.

Source

abstract public function multi_resize( $sizes );

Changelog

VersionDescription
3.5.0Introduced.

User Contributed Notes

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