Resize multiple images from a single source.
(array) (Required) An array of image size arrays. Default sizes are 'small', 'medium', 'large'.
(array)
(int) Image width.
(int) Image height.
(bool) Optional. Whether to crop the image. Default false.
(array) An array of resized images metadata by size.
File: wp-includes/class-wp-image-editor.php
abstract public function multi_resize( $sizes );
Version | Description |
---|---|
3.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_image_editor/multi_resize