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

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 17 19:51:39 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:     
--------------------------+-------------------------------------------------
 When I try to resize (scale) image in media library, It return error
 message: Error while saving the scaled image. Please reload the page and
 try again.

 Problem is only with some pictures with "bad" resolution and it doesnt fit
 this condition correctly (different is about 0.01 - 0.03):
 // check if it has roughly the same w / h ratio
 if ( round($sX / $sY, 1) == round($fwidth / $fheight, 1) )

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


More information about the wp-trac mailing list