Photography Asked on August 8, 2021
For a while now I have used exiftool to strip away unnecessary metadata from jpg files (and to add copyright information) before uploading them:
exiftool -all= image.jpg
However, today I noticed that this can damage the image when my editing software embeds additional color information into the metadata (see for example this article).
Left is the damaged image, and to the right the original right out of the raw developer.
My question now is, which metatags are safe to strip and which are essential to keep? For example, based on the image ICC tags (i.e. -icc_profile:all
) shouldn’t be stripped if they exist? (Possible duplicate of this question.)
I don't recommend you to remove metadata from your original images. It make sense to do this for images that you want to share or publish, during the export stage for the next reasons:
So my suggestion is: don't remove metadata from your images that is value for you. And instead use a photo management software to export your images to a right format, applies your profile, strip metadata, assign your copyrights and contact info and add your watermarks.
Answered by Murat - Daminion Software on August 8, 2021
exiftool -all= -TagsFromFile @ -ColorSpaceTags DIRorFILES
This command will remove nearly all metadata but retain ExifIFD:ColorSpace, ExifIFD:Gamma, InteropIFD:InteropIndex, and ICC_Profile tags. ColorSpaceTags is an ExifTool shortcut for “standard tags which carry color space information” (added in ver 9.51).
There are some caveats. -all=
will not delete Adobe APP14 block in jpegs, as this may affect the colors of the image. No personal info is held in this block, so there is normally no need to delete it. It will also not delete Exif tags in a tiff or tiff based file such as Nikon or Canon raw images (NEF or CR2), as the image data itself is contained in the Exif block. -CommonIFD0=
can be added to the command to clear out most common Exif tags in these images (see ExifTool Shortcut tags for full list of tags contained in the CommonIFD0 shortcut).
Answered by StarGeek on August 8, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP