在不丢失颜色配置文件的情况下剥离 EXIF 数据:不适用于 PNG

问题描述 投票:0回答:1

为了在不丢失颜色配置文件信息的情况下剥离 EXIF 数据,我使用

magick input.jpg profile.icm
magick input.jpg -strip -profile profile.icm output.jpg

它适用于 JPEG,但似乎不适用于 PNG。

magick input.png profile.icm
magick input.png -strip -profile profile.icm output.png

虽然

input.png
具有
Color LCD
颜色配置文件,但
output.png
没有任何颜色配置文件信息。为什么?

第一个命令提取的 PNG 图像和

profile.icm
文件位于:https://github.com/jsx97/test/blob/main/exif.zip

image-processing imagemagick
1个回答
0
投票

我认为你必须使用 exiftool 而不是 Imagemagick 来删除 exif 元数据。

exiftool -EXIF:all= input.png

exiftool -EXIF= input.png

参见 https://linuxhandbook.com/remove-exif-data/

但是我对 PNG 的测试也不起作用。我不知道为什么 PNG 不同。

© www.soinside.com 2019 - 2024. All rights reserved.