Make WordPress Core

Opened 9 years ago

Last modified 7 years ago

#31296 closed defect (bug)

Uploaded images are saved as a "resized" duplicate, if the size matches $_wp_additional_image_sizes — at Initial Version

Reported by: wpdennis's profile wpdennis Owned by:
Milestone: 4.2 Priority: normal
Severity: major Version: 4.1
Component: Media Keywords: has-patch
Focuses: Cc:

Description

If an image is uploaded with the exact same width and height, as via add_image_size() specified, it results in two files with same dimensions in upload dir. One being the original filename and the other is the "resized" one with a size appendix to its filename.

Prior to 4.1 there was only the image with the original filename. The behaviour with 4.1 is bad, because we have a) more images than necessary and b) WordPress uses the version with size appendix. If you're optimizing images before uploading them, the optimizations aren't used at all.

It seems like the change came in with this changeset:
https://core.trac.wordpress.org/changeset/30639

Corresponding ticket:
https://core.trac.wordpress.org/ticket/19793

Change History (0)

Note: See TracTickets for help on using tickets.