[wp-trac] [WordPress Trac] #13556: wp_get_attachment_image() displays larger images than necessary with an array

WordPress Trac wp-trac at lists.automattic.com
Thu May 27 05:17:39 UTC 2010


#13556: wp_get_attachment_image() displays larger images than necessary with an
array
-----------------------------+----------------------------------------------
 Reporter:  tomthewebmaster  |        Owner:          
     Type:  defect (bug)     |       Status:  reopened
 Priority:  normal           |    Milestone:  3.0     
Component:  Media            |      Version:  3.0     
 Severity:  normal           |   Resolution:          
 Keywords:                   |  
-----------------------------+----------------------------------------------

Comment(by tomthewebmaster):

 Original image - 465x700 (http://jingletom.com/beta/wp-
 content/uploads/2010/05/IMGP00062.jpg)
 Requested - 170x170

 Size of crunched images:

 Thumbnail - 150x150 (http://jingletom.com/beta/wp-
 content/uploads/2010/05/IMGP00062-150x150.jpg)
 Medium - 199x300 (http://jingletom.com/beta/wp-
 content/uploads/2010/05/IMGP00062-199x300.jpg)
 Large - None (due to size of full image).
 Full size - original image


 Code I used to request the image: `<?php echo wp_get_attachment_image(70,
 array(170,170), false); ?>`

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


More information about the wp-trac mailing list