[wp-trac] [WordPress Trac] #23987: add_image_size() shouldn't crop 0 values

WordPress Trac noreply at wordpress.org
Mon Apr 8 08:35:10 UTC 2013


#23987: add_image_size() shouldn't crop 0 values
-----------------------------+-----------------------------
 Reporter:  Clorith          |       Type:  feature request
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Media
  Version:  3.5.1            |   Severity:  normal
 Keywords:                   |
-----------------------------+-----------------------------
 When using add_image_size() the image should only be cropped by values
 that are entered, the following example should only crop the height, and
 leave the width as the upload original;

 {{{
 add_image_size( 'wide-image', 0, 400, true );
 }}}

 If one uploads a 1600x1600 image, the above should then crop this to
 1600x400.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23987>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list