2020-05-02 / 3145阅 / 悠然
Resizes an image to make a thumbnail or intermediate size.
The returned array has the file size, the image width, and image height. The ‘image_make_intermediate_size’ filter can be used to hook in and change the values of the returned array. The>
(string)
(Required)
File path.
(int)
(Required)
Image width.
(int)
(Required)
Image height.
(bool)
(Optional)
Whether to crop image to specified width and height or resize.
Default value: false
(array|false) Metadata array on success. False if no image was created.