WordPress at a glance
function is not described

get_udims() WP 2.0.0

Deprecated in 3.5.0. It is no longer supported and can be removed in future releases. Use wp_constrain_dimensions() instead.

Calculated the new dimensions for a downsampled image.

  • See: wp_constrain_dimensions()

No Hooks.

Return

Array. Shrunk dimensions (width, height).

Usage

get_udims( $width, $height );
$width(int) (required)
Current width of the image
$height(int) (required)
Current height of the image

Code of get udims: wp-admin/includes/deprecated.php VER 5.1.1

<?php
function get_udims( $width, $height ) {
	_deprecated_function( __FUNCTION__, '3.5.0', 'wp_constrain_dimensions()' );
	return wp_constrain_dimensions( $width, $height, 128, 96 );
}