[wp-trac] [WordPress Trac] #40087: Add ability to filter Imagemagick processing options
WordPress Trac
noreply at wordpress.org
Thu Dec 20 21:51:34 UTC 2018
#40087: Add ability to filter Imagemagick processing options
-------------------------------+------------------------------
Reporter: aesqe | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.7.3
Severity: trivial | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by mikeschroder):
* keywords: dev-feedback => reporter-feedback
* type: feature request => enhancement
Comment:
Thanks so much for the report!
At the moment, the intended way to make this change is by extending the
`WP_Image_Editor_Imagick` class, and adding (replacing if you want) the
new class to the list of editors with the
[https://developer.wordpress.org/reference/hooks/wp_image_editors/
wp_image_editors filter].
It's built this way to abstract away the internals of each image editor,
because a filter specifically for Imagick wouldn't apply to GD, for
example.
Will that work for your use-case?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40087#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list