image_resize_dimensions Wordpress function


Description:

Retrieve calculated resized dimensions for use in WP_Image_Editor.


Syntax:


Arguments:

(int) $orig_w Original width.
(int) $orig_h Original height.
(int) $dest_w New width.
(int) $dest_h New height.
(bool) $crop Optional, default is false. Whether to crop image or resize.


Return Type:

(bool|array) False on failure. Returned array matches parameters for imagecopyresampled() PHP function.


Define At:

wp-includes/media.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/image_resize_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 ×