WordPress.org

Taiwan 正體中文

  • 佈景主題目錄
  • 外掛目錄
  • 最新消息
  • 技術支援
  • 關於我們
  • 團隊
  • 取得 WordPress
取得 WordPress
WordPress.org

Plugin Directory

Strip Image Metadata for JPG and WEBP

  • 提交外掛
  • 我的最愛
  • 登入
  • 提交外掛
  • 我的最愛
  • 登入

Strip Image Metadata for JPG and WEBP

由 Martin von Berg 開發
下載
  • 詳細資料
  • 使用者評論
  • 安裝方式
  • 開發資訊
技術支援

外掛說明

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 AVIF and 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, WEBP and AVIF 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 writes avif and webp, too):

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

  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.

螢幕擷圖

  • Plugin settings page
  • Viewing image EXIF details
  • Bulk action for stripping image metadata

安裝方式

  1. Install the plugin through the WordPress plugins screen.
  2. Activate the plugin on the WordPress plugins screen.

Configuring

EN: You configure the plugin in Settings > Strip Image Metadata.
DE: Die Konfiguration erfolgt in Settings > Metadaten entfernen.

常見問題集

How will I know if I have the required Imagick or Gmagick extension on my site?

If you aren’t sure, after installing the plugin, in WP Admin navigate to: Settings > Strip Image Metadata

Under “Plugin Information” it will show if the required extension is active on the site or not and it the minimum required version is met.

If a compatible extension is not found, try asking your webhost or system administrator if either one can be enabled.

Can I remove metadata from images uploaded before installing this plugin?

Yes, there is a bulk action included. In WP Admin navigate to the Media library and make sure you are using the List view.

Select which images you’d like to strip metadata from and then select the “WP Strip Image Metadata” bulk action.

This can be a resource intensive process, so please only select a handful of images at one time for processing.

Will this work for all generated image subsizes (thumbnails)?

Yes, if metadata stripping is enabled then all generated subsizes, depending on Size Limit, at the time of upload will have the metadate removed.

The included bulk action will also remove metadata from all subsizes as well, depending on Size Limit.

How do I know it’s working?

In WP Admin, from your Media library you can select an image and click “Edit” (in List view) or “Edit more details” (in Grid view).

On the Edit page for the image, there will be an admin notice at the top with the “expand for image EXIF data” text. The Top Line shows, without expansion, the number of bytes for the different file sizes. This should work for jpg/jpeg, avif and webp files, but other image types may not display EXIF info.

You might try uploading a test image with the “Image Metadata Stripping” setting disabled, and then the same image again with the setting enabled to view the difference.

Here are some good sample images for testing: https://github.com/ianare/exif-samples/tree/master/jpg/gps

Popular image editing applications such as Photoshop or Affinity Photo also have the capability to inspect image metadata which can prove useful. On the Commandline Exiftool or Exiv2 provide very good information.

Once image metadata has been stripped, is it reversible?

No, removing image metadata is permanent. If you would like the metadata kept, you should keep an offsite backup copy of your images.

What file types does this plugin work for?

By default the plugin will process jpg/jpeg, avif and webp files.

What do the plugin settings do?

  • Image Metadata Stripping: whether image metadata is stripped from new uploads.
  • Preserve ICC Color Profile: whether to keep image color information which is helpful to some applications.
  • Preserve Image Orientation: whether to keep image orientation which can help rotate images as intended.
  • Set / Keep Copyright: whether to set / change or keep Copyright Information based on Template Files.
  • Size Limit: Only strip Images Files which width is SMALLER than size Limit.
  • Log Errors: whether to log error output which can be helpful for debugging purposes.

使用者評論

Perfect

ximbor 2023 年 10 月 21 日
Thank you Martin for making this plugin! Works perfectly. Really appreciate the work you put into making it. You saved me a real headache of having to edit all this meta data manually from 1000+ images ❤
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Strip Image Metadata for JPG and WEBP〉的開發相關工作。

參與者
  • Martin von Berg

〈Strip Image Metadata for JPG and WEBP〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Strip Image Metadata for JPG and WEBP〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

變更記錄

1.4.1 – 2025-04-15

  • Tested with WordPress 6.8. Works. No Changes.

1.4.1 – 2024-11-08

  • Tested with WordPress 6.7. Minor PHP Bugfix.

1.4.0 – 2024-10-21

  • added AVIF-support, increased minimum PHP-version following the WP recommendation,
  • Minor PHP Bugfixes, e.g. updated focal length extraction for full-frame cameras.
  • Changed the Imagick / GD check for supported files. Removed the version check completely.
  • Tested with WordPress 6.6.2

1.3.0 – 2024-07-17

  • Tested with WordPress 6.6.

1.3.0 – 2024-04-03

  • Tested with WordPress 6.5.

1.2.0 – 2023-10-21

  • Tested with WordPress 6.4. Bugfix for PHP 7.4 (mixed return type was wrong)

1.2.0 – 2023-08-09

  • Tested with WordPress 6.3. First upload to Plugin-Direcotory.

1.2.0 – 2023-07-26

  • Added checking of WP Nonces for security.

1.2.0 – 2023-07-26

  • Formatting change for WPCS rules. Code change w/o functional change to follow plugin Plugin Rules. Mind: Semantic versioning will be changed correctly AFTER upload to the WP plugin directory.

1.2.0 – 2023-07-01

  • Added a Button for stripping the image in media details view.

1.2.0 – 2023-07-01

  • Updates for adding Plugin to WordPress.org official directory. (Escaping for 4 echo added.). Updated this readme.

1.2.0 – 2023-05-02

  • Updates for translation including bugfixes and German translation added.

1.1.0 – 2023-05-01

  • Updates for phpstan check with level 8. Only 8 error messages remain, but these are due to inconstent type definitions in WP functions. No functional changes. Readme update.

1.0 – 2023-04-27

  • Initial plugin release based on the work of Samiff

中繼資料

  • 版本 1.4.1
  • 最後更新 5 天前
  • 啟用安裝數 100+
  • WordPress 版本需求 6.0 或更新版本
  • 已測試相容的 WordPress 版本 6.8.1
  • PHP 版本需求 8.0 或更新版本
  • 語言

    English (US) 及 Norwegian (Bokmål).

    將這個外掛本地化為你的母語版本

  • 標籤
    exifimagemetadataprivacystrip
  • 進階檢視

評分

5 星,滿分為 5 星
  • 1 個 5 星使用者評論 5 星 1
  • 0 個 4 星使用者評論 4 星 0
  • 0 個 3 星使用者評論 3 星 0
  • 0 個 2 星使用者評論 2 星 0
  • 0 個 1 星使用者評論 1 星 0

新增使用者評論

查看全部使用者評論

參與者

  • Martin von Berg

技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

檢視技術支援論壇

贊助

想要支援這個外掛的發展嗎?

贊助這個外掛

  • 關於我們
  • 最新消息
  • 主機代管
  • 隱私權
  • 展示網站
  • 佈景主題目錄
  • 外掛目錄
  • 區塊版面配置目錄
  • Learn
  • 技術支援
  • 開發者資源
  • WordPress.tv ↗
  • 共同參與
  • 活動
  • 贊助基金會 ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Taiwan 正體中文

  • 查看我們的 X (之前的 Twitter) 帳號
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • 造訪我們的 Facebook 粉絲專頁
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
程式碼,如詩