Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#20893 closed defect (bug) (invalid)

Media library "icons" using full size images

Reported by: jfarthing84 Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3.2
Component: Media Keywords:
Focuses: Cc:


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)

#1 @jfarthing84
6 years ago

  • Cc jeff@… removed
  • Keywords dev-feedback removed
  • Resolution set to invalid
  • Severity changed from critical to normal
  • Status changed from new to closed

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!

#2 @helenyhou
6 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.