[wp-trac] [WordPress Trac] #40415: Imagick resize filter hook
WordPress Trac
noreply at wordpress.org
Tue Sep 14 03:29:46 UTC 2021
#40415: Imagick resize filter hook
-------------------------------------------------+-------------------------
Reporter: virgodesign | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future
| Release
Component: Media | Version: 4.7.3
Severity: normal | Resolution:
Keywords: has-patch needs-testing reporter- | Focuses:
feedback |
-------------------------------------------------+-------------------------
Comment (by galbaras):
I totally agree to the need for filters, on top of better default
settings. Giving developers filters means that WordPress can use a
reasonable default, and developers can tweak based on the original images,
and the site's visual needs.
Another thing that should help is the use of `adaptiveResizeImage()`,
instead of `resizeImage()`, because it sharpens the subject/foreground of
the image, while not sharpening the background (as much).
I've tested `adaptiveResizeImage()` with various sigma values, and 1 got
me a nice enough result. However, it would be good to test ranges of image
sizes and ranges of scaling ratios (original size / thumbnail size) to
find out more.
Possible option: add image sharpening values to the definition of image
sizes for better developer control without filters.
Possible option: add image sharpening values to the customizer for better
reach by non-developer site builders.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40415#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list