#20893 closed defect (bug) (invalid)
Media library "icons" using full size images
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.3.2 |
Component: | Media | Keywords: | |
Focuses: | Cc: |
Description
I uploaded 3 images from a digital camera, which are 4000x3000 pixels. With all default settings, WordPress created the following variations of each:
- 150x150
- 300x225
- 400x300
- 1000x288
- 1024x768
Now, clearly, the 150x150 would be the best choice to display for the "icon" in the Media Library list table. However, it is using the full size image (4000x3000), scaled via CSS. Obviously, this is a major bandwidth killer.
Furthermore, I did some manual testing of wp_get_attachment_image, and no matter what combination I put for the size parameter, it returned the full image.
Change History (2)
Note: See
TracTickets for help on using
tickets.
D'oh. I feel like an idiot. Turns out I had a filter on wp_update_attachment_metadata that wasn't returning the metadata. So, WordPress didn't "know" that alternate image sizes exist. My bad!