get_udims

DeprecatedDeprecated

This function has been deprecated. Use wp_constrain_dimensions() instead.

SummerySummery

Calculated the new dimensions for a downsampled image.

Syntax

get_udims( int $width, int $height )

ParametersParameters

$width

(int) (Required) Current width of the image

$height

(int) (Required) Current height of the image

ReturnReturn

(array) Shrunk dimensions (width, height).

SourceSource

File: wp-admin/includes/deprecated.php


			

ChangelogChangelog

Changelog
Version Description
3.5.0 Use wp_constrain_dimensions()
2.0.0 Introduced.

See alsoSee also

Scroll to Top