| | 313 | /** |
| | 314 | * Filter whether to strip the image exif data when resizing an image using Imagick. |
| | 315 | * |
| | 316 | * Can significantly reduce images file fizes for small/heavily compressed images. |
| | 317 | * Applies only when using `Imagick` for image manipulation. GD already strips exif data. |
| | 318 | * |
| | 319 | * @param bool true Whether to strip image image exif data. Default false. |
| | 320 | * @param array $size_data { |
| | 321 | * Array of current size settings: height, width and whether to crop. |
| | 322 | * |
| | 323 | * @type int $width Image width. Optional if `$height` is specified. |
| | 324 | * @type int $height Image height. Optional if `$width` is specified. |
| | 325 | * @type bool $crop Optional. Whether to crop the image. Default false. |
| | 326 | * } |
| | 327 | * @param object $orig_image The Imagick object being resized. |
| | 328 | */ |
| | 329 | if ( ! apply_filters( 'imagick_strip_image_exif', true, $size_data, $orig_image ) ) { |
| | 330 | $this->image->stripImage(); |
| | 331 | } |
| | 332 | |