Strip Image Metadata for JPG and WEBP

plugin banner

Strip Image Metadata for JPG and WEBP Files

Author:Martin von Berg (profile at wordpress.org)
WordPress version required:6.0
WordPress version tested:6.5
Plugin version:1.3.0
Added to WordPress repository:11-08-2023
Last updated:03-04-2024
Rating, %:100
Rated by:1
Plugin URI:https://github.com/MartinvonBerg/wp-strip-ima...
Total downloads:560
Active installs:60+
plugin download
Click to start download

This Plugin is based on the work of Samiff and the Plugin “WP Strip Image Metadata”. If you are looking for a simple Plugin to strip all Metadata you should install this one. Available from the WordPress.org plugin repository here: https://wordpress.org/plugins/wp-strip-image-metadata/
This Plugin extends the Functionality of “WP Strip Image Metadata” with the following Functions:

Extended Functionality

  • Handle WEBP-Images, too.
  • set / add / change Copyright, Artist or Credit Information in JPG and WEBP images Files.
  • Set an upper Size Limit for the Stripping. All Files with Width greater than Size Limit won’t be stripped.
  • Show some more Information in the Image Edit Panel
  • Set a Minimum version for Imagick (3.4.4) and Gmagick (2.0.5) to handle files at all. Gmagick is still limited in functionality.

Preparation of Copyright Template Files

Both Imagick and Gmagick do not allow to set EXIF-Metadata directly. The author of this plugin does not know an Open Source PHP or WordPress Function with appropriate License to set metadata in an Image File. So a Template File is used that has to be prepared by the user. It’s only possible to use one template File for
one Artist, only! The Plugin uses one Template File for the whole site. So, if you are on a Multi-User-Site this Plugin is not for you.

  1. Prepare a JPG and WEBP File with very small size, e.g. 100×100 or so. Image dimensions do not matter, here.
  2. Strip all Metadata with exiftool (current version 12.6.0.0 writes webp, too):

    exiftool.exe -all= ./yourfile.jpg -o copyright.jpg
    exiftool.exe -all= ./anotherfile.webp -o copyright.webp

  3. Add the Copyright (or other) EXIF-Metadata you prefer with Exiftool like so

    exiftool.exe -copyright="Copyright by User of the Plugin and Site" ./copyright.jpg
    exiftool.exe -artist="User of the Plugin and Site" ./copyright.jpg

The other functionality of the Plugin was not changed so the original Readme follows herafter.

Original Description

Strip image metadata on upload or via bulk action, and view image EXIF data.
WP Strip Image Metadata is a privacy focused WordPress plugin that helps in removing potentially sensitive metadata from your uploaded images.

What is image metadata?

Image metadata is extra information embedded in image files. This information is stored in a variety of formats and contains items like the model of the camera that took a photo.
However, image metadata may also contain identifying information such as the GPS location coordinates of an image taken with a smartphone for example.
This plugin provides an easy enabled/disabled setting so you can make the call on when image metadata should be removed.
Note: this plugin requires the “Imagick” or “Gmagick” PHP extension to function.


Screenshots
FAQ
ChangeLog