[wp-trac] [WordPress Trac] #7748: Black line on scaled thumbnail image

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 20 21:30:06 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  |  
------------------------------+---------------------------------------------

Comment(by miqrogroove):

 {{{
 $new_h = 240;
 $orig_h = 416;
 $size_ratio = $new_h / $orig_h;
 $crop_h = ceil($new_h / $size_ratio);
 var_dump($crop_h);
 // float(417)
 }}}

 ugh I hate this thing not having an edit button :(

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/7748#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list