How to avoid WordPress stripping EXIF metadata when resizing images?

Metadata is information about an image, and can be included in JPEG image files.

EXIF metadata is information about the image recorded directly from the camera – for example, the exposure time and the date the photo was taken.

WordPress preserves EXIF information in full size images loaded to your website. It will also extract the Exif data to make it available for plugin developers.

When WordPress uploads images, in addition to uploading the Full Size image it automatically creates several differently sized versions of the image. By default: a Large, Medium and Thumbnail version.

The problem is that WordPress is stripping the EXIF data when resizing images. The resized images become “orphan”.

An “orphan” work is a work to which copyright cannot be determined or a work where the determined copyright holder cannot be contacted.

In the era of responsive images, it cannot be that the solution to keep the EXIF data of an image is to use the image in full-size.

Question:

  • How to force WordPress to keep EXIF data?

Digging further:

  • Is there a way to insert the EXIF data in resized images once they have been resized?
  • Is there a way to force wordpress to use another Image Processing System that is not stripping metadata from images?

3 s
3

This issue has been fixed with a filter in WordPress 4.5. If you want to preserve the exif data when resizing use

add_filter ('image_strip_meta', false);

Leave a Comment