WPDev.one

get_udims()

get_udims( mixed $width, mixed $height )

Calculated the new dimensions for a downsampled image.

Parameters 2 required

Name / Type Description
$width
int

Current width of the image

Required
$height
int

Current height of the image

Required

Return Value

(array)
Shrunk dimensions (width, height).

Function Information

Since Version
2.0.0
Source File
wp-admin/includes/deprecated.php
Advertisement