[wp-trac] [WordPress Trac] #54648: Improve filter to enable setting quality for each subsize image
WordPress Trac
noreply at wordpress.org
Wed Nov 20 17:24:43 UTC 2024
#54648: Improve filter to enable setting quality for each subsize image
-------------------------------------+-------------------------------------
Reporter: Mte90 | Owner: adamsilverstein
Type: enhancement | Status: accepted
Priority: normal | Milestone: 6.8
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-unit- | Focuses: performance,
tests changes-requested dev- | sustainability
feedback |
-------------------------------------+-------------------------------------
Changes (by adamsilverstein):
* keywords: has-patch needs-unit-tests changes-requested => has-patch
needs-unit-tests changes-requested dev-feedback
Comment:
> Q: Right now I am applying the filter after the final image size is
calculated, passing the calculated size which might include a crop. We
could instead pass the "requested" size which might be better because it
would always match the image size dimensions What do you think?
Another option would be to include both - that way developers could act on
either number.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54648#comment:43>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list