[wp-trac] [WordPress Trac] #26823: wp_get_image_editor->multi_resize()

WordPress Trac noreply at wordpress.org
Mon Jan 13 17:47:40 UTC 2014


#26823: wp_get_image_editor->multi_resize()
--------------------------------+------------------------------
 Reporter:  pbearne             |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  External Libraries  |     Version:  trunk
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |
--------------------------------+------------------------------

Comment (by alconebay):

 I've edited the tutorial at the link provided (bhoover.com) to use "9999"
 instead of "NULL", for now. I'll keep an eye on this ticket. Thanks!

 This is the tutorial example pbearne is referring to before I changed it:

 {{{
 $sizes_array = array(
 // #1 - resizes to 100x100 pixel, square-cropped image
 array ('width' => 100, 'height' => 100, 'crop' => true),
 // #2 - resizes to 200/100 pixel max width/height, non-cropped image
 array ('width' => 200, 'height' => 100, 'crop' => false),
 // #3 - resizes to 200 pixel max height, non-cropped image
 array ('width' => NULL, 'height' => 200, 'crop' => false),
 // #3 - resizes to 450 pixel max width, non-cropped image
 array ('width' => 450, 'height' => NULL, 'crop' => false)
 );
 $resize = $img->multi_resize( $sizes_array );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26823#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list