首页 WordPress函数大全 image_make_intermediate_size()

image_make_intermediate_size()

2020-05-02 / 3145阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

image_make_intermediate_size( string $file, int $width, int $height, bool $crop = false )

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>

参数

$file

(string)
(Required)
File path.

$width

(int)
(Required)
Image width.

$height

(int)
(Required)
Image height.

$crop

(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.

大家谈论
    我的见解