Intermediate image sizing, new thumbnails
|Reported by:||tellyworth||Owned by:|
|Milestone:||2.5||Priority:||highest omg bbq|
This improves the new image sizing features and implements new thumbnails.
Instead of a single thumbnail, images can now have multiple intermediate sizes. By default there's a Thumbnail size and a Medium size. These are generated at upload time and stored in the image metadata as a new array element 'sizes'. There's a hook so plugins can include additional sizes.
The new thumbnail size is 150x150, cropped to a square. The new design calls for 75x75 square thumbs; I decided on 150x150 because it's closer to the old size or 128x96, but can be scaled in the browser to half size without ugly artefacts.
get_attachment_thumb_url() and get_attachment_icon_src() will return the new thumbnail if it exists, and fall back to the old one if it does not.
Change History (7)
- Keywords media has-patch added
- Priority changed from normal to highest omg bbq
- Resolution fixed deleted
- Severity changed from normal to blocker
- Status changed from closed to reopened
- Type changed from enhancement to defect
- Version set to 2.5