[wp-trac] [WordPress Trac] #23779: Can't insert large image if it's smaller than media setting but larger than theme setting

WordPress Trac noreply at wordpress.org
Fri Mar 15 14:52:17 UTC 2013


#23779: Can't insert large image if it's smaller than media setting but larger than
theme setting
---------------------------+------------------------------
 Reporter:  aaroncampbell  |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Media          |     Version:  3.5
 Severity:  normal         |  Resolution:
 Keywords:                 |
---------------------------+------------------------------
Changes (by aaroncampbell):

 * keywords:  reporter-feedback =>


Comment:

 When it creates the dropdown and when it inserts the image into the post
 it uses $content_width, a theme-defined global variable, if it exists.

 To see what I mean, enable Twenty Twelve which uses $content_width = 625,
 and leave your media setting for large to the default 1024.  Now upload an
 image that is wider than 1024 and you will get the option to insert the
 large image into the post but the width will be 625.  Now upload an image
 that is 800px wide (or something between 625 and 1024) and you don't have
 the large option.  Instead you have to insert the full-size and then
 resize it.

 I've had several users that were really frustrated by this.  The
 workaround is pretty easy (just set the media settings to match the
 theme), but it's not very obvious.  They expect to be able to use the
 large option if the image they upload is larger than what they always see
 as the "large" option (which is $content_width).

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


More information about the wp-trac mailing list