get_udims()
get_udims( int $width, int $height )
计算下采样图像的新尺寸。
Calculated the new dimensions for a downsampled image.
说明(Description)
另见函数 wp_constrain_dimensions()
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$width | (int) | 必需 | 图像的当前宽度 |
$height | (int) | 必需 | 图像的当前高度 |
返回(Return)
(array)缩小尺寸(array)。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.5.0 | wp-admin/includes/deprecated.php:66 | 0 | 2 |
get_udims() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_udims/