[wp-trac] [WordPress Trac] #7151: Separate Large and Full image
sizes, related improvements
WordPress Trac
wp-trac at lists.automattic.com
Wed Jun 18 08:05:10 GMT 2008
#7151: Separate Large and Full image sizes, related improvements
-------------------------+--------------------------------------------------
Reporter: tellyworth | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.6
Component: General | Version:
Severity: normal | Keywords: has-patch
-------------------------+--------------------------------------------------
Currently the intermediate image sizes available for inserting into a post
are Thumbnail, Medium and Full Size. Full Size is misleading because,
although it uses the original sized image, it will scale it down with the
img width and height to fit the theme's content width (if set). That can
be overridden by the user by dragging the resize anchors in the image
editor but it's annoying and doesn't really fit the definition of "full"
size.
This patch adds an extra "large" size option. The new sizes with brief
use cases are:
* Thumbnail, as before, for galleries and similar
* Medium, as before, for use as a small inset image in a text article
* Large, constrained to 1024 pixels or the theme's content width (if set),
whichever is smaller, for normal use as a big featured image
* Full Size, the original image at its full dimensions with no content
width constraint, for photobloggers and people who really need a big image
I also made some minor improvements:
* The exact image dimensions are displayed with each size radio button
(e.g. "Medium (400 × 265)")
* Radio buttons are only enabled for sizes that actually exist. There
won't be a Large option if there is no large version of that image, for
example. Full Size is always available.
* Large size width and height constraints can be set on the Settings /
Misc tab
* Fixed a bug where image_downsize() didn't always respect $content_width
(resulting in a medium image being bigger than a large/full sized one in
some cases)
--
Ticket URL: <http://trac.wordpress.org/ticket/7151>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list