[wp-trac] [WordPress Trac] #18532: resized image dimensions incorrectly floored instead of rounded

WordPress Trac noreply at wordpress.org
Sun Nov 30 19:53:20 UTC 2014


#18532: resized image dimensions incorrectly floored instead of rounded
--------------------------+-----------------------------
 Reporter:  _ck_          |       Owner:  wonderboymusic
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.1
Component:  Media         |     Version:  2.5
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------
Changes (by wonderboymusic):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"30660"]:
 {{{
 #!CommitTicketReference repository="" revision="30660"
 Use `round()` instead of `floor()` when resizing image dimensions.

 Updates unit tests.

 Props SergeyBiryukov, kitchin.
 Fixes #18532.
 }}}

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


More information about the wp-trac mailing list