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

WordPress Trac noreply at wordpress.org
Fri Feb 14 02:56:26 UTC 2014


#26823: wp_get_image_editor->multi_resize()
--------------------------+------------------
 Reporter:  pbearne       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.9
Component:  Media         |     Version:  3.5
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------

Comment (by pbearne):

 I have added a test for null and zero's

 I test that we get an empty array and that file count in folder doesn't
 change.

 But I feel that the re-size function doesn't do the right thing. If you
 pass both H and W as null/0 with a crop flag an rectangular image should
 be crop to a square image at the maxmim possible size.

 What do you think?

 Paul

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


More information about the wp-trac mailing list