get_udims()

最后更新于:2021-11-27 03:11:11

get_udims( int$width, int$height)

Calculated the new dimensions for a downsampled image.

参数

$width

(int) (Required) Current width of the image

$height

(int) (Required) Current height of the image

响应

(array) Shrunk dimensions (width, height).

源文件

文件: gc-admin/includes/deprecated.php

function get_udims( $width, $height ) {
	_deprecated_function( __FUNCTION__, '3.5.0', 'gc_constrain_dimensions()' );
	return gc_constrain_dimensions( $width, $height, 128, 96 );
}