wp_shrink_dimensions Wordpress function


Description:

Calculates the new dimensions for a downsampled image.


Syntax:


Arguments:

(int) $width Current width of the image
(int) $height Current height of the image
(int) $wmax Maximum wanted width
(int) $hmax Maximum wanted height


Return Type:

(array) Shrunk dimensions (width, height).


Define At:

wp-admin/includes/deprecated.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_shrink_dimensions


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×