Definition:
function get_udims( $width, $height) {}
Calculated the new dimensions for a downsampled image.
Parameters
- int $width: Current width of the image
- int $height: Current height of the image
Return values
returns:Array(height,width) of shrunk dimensions.
Source code
function get_udims( $width, $height) { return wp_constrain_dimensions( $width, $height, 128, 96 ); }
1871
No comments yet... Be the first to leave a reply!