image_constrain_size_for_editor Wordpress function


Description:

Scale down the default size of an image.


Syntax:


Arguments:

(int) $width Width of the image
(int) $height Height of the image
(string|array) $size Size of what the result image should be.
(context) $context Could be 'display' (like in a theme) or 'edit' (like inserting into an editor)


Return Type:

(array) Width and height of what the result image should resize to.


Define At:

wp-includes/media.php


Wordpress Reference URL:

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


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