[wp-trac] [WordPress Trac] #7748: Black line on scaled thumbnail image
WordPress Trac
wp-trac at lists.automattic.com
Fri Nov 20 20:09:29 UTC 2009
#7748: Black line on scaled thumbnail image
-------------------------------------+--------------------------------------
Reporter: nyoungman | Type: defect (bug)
Status: new | Priority: normal
Milestone: 2.9 | Component: Upload
Version: 2.6.1 | Severity: normal
Keywords: has-patch needs-testing |
-------------------------------------+--------------------------------------
Changes (by miqrogroove):
* keywords: needs-patch => has-patch needs-testing
Comment:
This bug is fairly obvious at wp-
includes/media.php::image_resize_dimensions()
If you take an image of size 1025 and resize to 100, the size ratio is
0.09756. Dividing that ratio into 100 gives ceil(1025.01) == 1026. So
even at first glance, the cropping rectangle of 1026 is larger than the
original image.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/7748#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list