Title: image_strip_meta
Published: April 12, 2016
Last modified: May 20, 2026

---

# apply_filters( ‘image_strip_meta’, bool $strip_meta )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/image_strip_meta/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/image_strip_meta/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/image_strip_meta/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/image_strip_meta/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/image_strip_meta/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/image_strip_meta/?output_format=md#wp--skip-link--target)

Filters whether to strip metadata from images when they’re resized.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/image_strip_meta/?output_format=md#description)󠁿

This filter only applies when resizing using the Imagick editor since GD always 
strips profiles by default.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/image_strip_meta/?output_format=md#parameters)󠁿

 `$strip_meta`bool

Whether to strip image metadata during resizing. Default true.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/image_strip_meta/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-image-editor-imagick.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/class-wp-image-editor-imagick.php#L442)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/class-wp-image-editor-imagick.php#L442-L442)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/image_strip_meta/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Image_Editor_Imagick::thumbnail_image()](https://developer.wordpress.org/reference/classes/wp_image_editor_imagick/thumbnail_image/)`wp-includes/class-wp-image-editor-imagick.php` |

Efficiently resize the current image

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/image_strip_meta/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.5.0](https://developer.wordpress.org/reference/since/4.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fimage_strip_meta%2F)
before being able to contribute a note or feedback.