apply_filters( ‘image_strip_meta’, bool $strip_meta )

In this article

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

if ( apply_filters( 'image_strip_meta', $strip_meta ) ) {

Changelog

VersionDescription
4.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.