[wp-trac] [WordPress Trac] #32437: Uploaded images are still saved as a "resized" duplicate
WordPress Trac
noreply at wordpress.org
Sun Jun 16 02:19:37 UTC 2019
#32437: Uploaded images are still saved as a "resized" duplicate
-------------------------------------------------+---------------------
Reporter: wpdennis | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.3
Component: Media | Version: 4.2
Severity: normal | Resolution:
Keywords: has-patch needs-testing 2nd-opinion | Focuses:
-------------------------------------------------+---------------------
Changes (by azaozz):
* keywords: needs-patch => has-patch needs-testing 2nd-opinion
Comment:
In 32437.diff: When an uploaded image matches exactly a registered size,
use a threshold to determine whether to still create a sub-size with
matching dimensions (but hopefully smaller file size). Adds
`wp_image_resize_identical_dimensions_threshold` filter with a default
value of 2560.
Note that this changes the current behaviour for this edge case. The
reason is that smaller images that match exactly a registered size are
likely edited before upload. Currently when we create a sub-size for such
image, it usually ends up with a larger file size and slightly reduced
quality.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32437#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list