To strip EXIF data without losing color profile information, I use
magick input.jpg profile.icm
magick input.jpg -strip -profile profile.icm output.jpg
It works for JPEG, but doesn’t seem to work for PNG.
magick input.png profile.icm
magick input.png -strip -profile profile.icm output.png
Whereas input.png
has Color LCD
color profile, output.png
doesn’t have any color profile information. Why?
PNG images and the profile.icm
file that was extracted by the first command are here: https://github.com/jsx97/test/blob/main/exif.zip