On this page
apply_filters( 'image_strip_meta', bool $strip_meta )
Filters whether to strip metadata from images when they’re resized.
Description
This filter only applies when resizing using the Imagick editor since GD always strips profiles by default.
Parameters
$strip_metabool-
Whether to strip image metadata during resizing. Default true.
Source
File: wp-includes/class-wp-image-editor-imagick.php. View all references
if ( apply_filters( 'image_strip_meta', $strip_meta ) ) {
Related
Used By
| Used By | Description |
|---|---|
| WP_Image_Editor_Imagick::thumbnail_image() wp-includes/class-wp-image-editor-imagick.php | Efficiently resize the current image |
Changelog
| Version | Description |
|---|---|
| 4.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/image_strip_meta