GC_Image_Editor::multi_resize()
最后更新于:2021-11-27 23:36:24
GC_Image_Editor::multi_resize( array$sizes)Resize multiple images from a single source.
参数
- $sizes
-
(array) (Required) An array of image size arrays. Default sizes are ‘small’, ‘medium’, ‘large’.
-
‘size’
(array)-
‘width’
(int) Image width. -
‘height’
(int) Image height. -
‘crop’
(bool) Optional. Whether to crop the image. Default false.
-
‘width’
-
‘size’
响应
(array) An array of resized images metadata by size.
源文件
文件: gc-includes/class-gc-image-editor.php
abstract public function multi_resize( $sizes );