[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:55:51 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 | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Description changed by SergeyBiryukov:
Old 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
New 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: r30639
Corresponding ticket: #19793
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31296#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list