Opened 20 years ago
Closed 20 years ago
#3588 closed defect (bug) (fixed)
Bug with Thumbnail Creation
| Reported by: | ryanfitzer | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 2.1 |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | image, thumbnail |
| Cc: | Focuses: |
Description
I'm getting a bug in 2.0.7 (I've seen it in earlier versions as well) where the inline uploading process creates different sized thumbnails depending on the image's ratio and/or file size.
Example:
Uploaded an image 1152px wide by 864px tall and WP generated a thumb that was 128px wide by 96px tall.
Uploaded another image that was 576px by 479px and WP generated a thumb that was 96px wide by 73px tall.
Then resized image 2 to be 600px wide by 450px tall and WP generated a thumb that was 128px wide by 96px tall.
Attachments (2)
Change History (6)
#3
@
20 years ago
- Milestone 2.0.8 → 2.1
- Resolution fixed
- Status closed → reopened
3588b.diff
This is the functionality I originally intended:
- wp_thumbnail_creation_size_limit < 0 means make the thumbnail
- wp_thumbnail_creation_size_limit = 0 means don't make the thumbnail
- wp_thumbnail_creation_size_limit > 0 means make the thumbnail if image_height * image_width < wp_thumbnail_creation_size_limit
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
WP tries to do some fancy things depending on the aspect ratio of the original image.
I say we just make a thumbnail that fits into an X by X square and let plugins do fancier things.
Attached makes thumbnails fit in 128x128 square and adds hooks.