Ticket #7151 (closed enhancement: fixed)

Opened 5 months ago

Last modified 3 months ago

Separate Large and Full image sizes, related improvements

Reported by: tellyworth Assigned to: anonymous
Priority: normal Milestone: 2.7
Component: General Version:
Severity: normal Keywords: has-patch
Cc:

Description

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)

Attachments

large-size-images-r8111.patch (10.5 kB) - added by tellyworth on 06/18/08 08:05:51.
large-size-images-r8585.patch (10.5 kB) - added by tellyworth on 08/08/08 06:14:31.
Refresh patch post 2.6

Change History

06/18/08 08:05:51 changed by tellyworth

  • attachment large-size-images-r8111.patch added.

07/15/08 09:47:22 changed by AdrianB

This looks like a good improvement, judging from the description. I haven't tried the patch though.

07/15/08 23:14:23 changed by ryan

  • milestone changed from 2.9 to 2.7.

08/08/08 06:14:31 changed by tellyworth

  • attachment large-size-images-r8585.patch added.

Refresh patch post 2.6

08/11/08 03:54:26 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [8612]) Separate Large and Full image sizes. Props tellyworth. fixes #7151