get_udims() – Calculated the new dimensions for a downsampled image.
You appear to be a bot. Output may be restricted
Description
Calculated the new dimensions for a downsampled image.
Usage
$array = get_udims( $width, $height );
Parameters
- $width
- ( int ) required – Current width of the image
- $height
- ( int ) required – Current height of the image
Returns
array Shrunk dimensions (width, height).
Source
File name: wordpress/wp-admin/includes/deprecated.php
Lines:
1 to 4 of 4
function get_udims( $width, $height ) { _deprecated_function( get_udims, '3.5.0', 'wp_constrain_dimensions()' ); return wp_constrain_dimensions( $width, $height, 128, 96 ); }