Make WordPress Core

Opened 16 months ago

#50667 new defect (bug)

New attachment size is created even the source is smaller

Reported by: adam.radocz Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.4.2
Component: Media Keywords: needs-patch
Focuses: performance Cc:


When you upload a very optimized image sometimes the created attachment size's file size is larger than the source image. When a new size is created its filesize should be checked whether it's really smaller or not. Now it just allocates extra space and uses extra bandwidth.

Sample image: https://ibb.co/x8LhGC0

Attachments (1)

P1020239.jpg (31.8 KB) - added by adam.radocz 16 months ago.
Sample image

Download all attachments as: .zip

Change History (1)

16 months ago

Sample image

Note: See TracTickets for help on using tickets.