[wp-trac] [WordPress Trac] #31296: Uploaded images are saved as a "resized" duplicate, if the size matches $_wp_additional_image_sizes
WordPress Trac
noreply at wordpress.org
Wed Feb 11 14:14:19 UTC 2015
#31296: Uploaded images are saved as a "resized" duplicate, if the size matches
$_wp_additional_image_sizes
--------------------------+-----------------------------
Reporter: wpdennis | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
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
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31296>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list