[wp-trac] [WordPress Trac] #11473: error on resize picture in media

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 18 01:35:59 UTC 2009


#11473: error on resize picture in media
--------------------------+-------------------------------------------------
 Reporter:  jsarson       |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  2.9
Component:  Editor        |     Version:  2.9
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------

Comment(by azaozz):

 Can't reproduce this. What is the image resolution you're trying? This is
 mostly a sanity check. Would changing it to something like this work:
 {{{
 $diff = round($sX / $sY, 2) - round($fwidth / $fheight, 2);
 if ( -0.05 < $diff && $diff < 0.05 )
 ...
 }}}

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


More information about the wp-trac mailing list