[wp-trac] [WordPress Trac] #7748: Black line on scaled thumbnail image
WordPress Trac
wp-trac at lists.automattic.com
Fri Nov 20 21:28:37 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 tested |
------------------------------+---------------------------------------------
Changes (by miqrogroove):
* keywords: has-patch needs-testing => has-patch tested
Comment:
Ah I was right. I was able to reproduce using OP's corner case:
{{{
$new_h = 240;
$orig_h = 416;
$size_ratio = $new_h / $orig_h;
$crop_h = round($new_h / $size_ratio);
var_dump($crop_h);
// float(417)
}}}
I tested and confirmed my patch will return int(416) instead of float(417)
in that case.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/7748#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list