[wp-trac] [WordPress Trac] #11801: Invalid size selection in image editor

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 7 12:15:32 UTC 2010


#11801: Invalid size selection in image editor
--------------------------+-------------------------------------------------
 Reporter:  mkaganer      |       Owner:       
     Type:  defect (bug)  |      Status:  new  
 Priority:  normal        |   Milestone:       
Component:  Media         |     Version:  2.9.1
 Severity:  normal        |    Keywords:       
--------------------------+-------------------------------------------------
 B.H.

 I'm using 2.9.1 with arras theme. The problem is that this theme uses very
 strange ratio for the thumb images - 640x250.

 This confuses the image editor which selects a narrow and wide thumbnail
 for editing, cropping everything from the top and the bottom of each
 image.

 The problem is that image_get_intermediate_size() selects a thumbnail
 which is bigger by width *or* by height than 400x400, so it selects
 640x250.

 I've fixed it in my code (see patch). I have no idea if this could impact
 something else, because i'm not familar with wordpress code.

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


More information about the wp-trac mailing list