Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Keep color profile when possible" just below "Clear existing metadata" as an Exiftool setting. #3196

Closed
ProtagNeptune opened this issue Jun 5, 2024 · 0 comments
Assignees
Milestone

Comments

@ProtagNeptune
Copy link
Contributor

ProtagNeptune commented Jun 5, 2024

32. "How do I safely delete all metadata from a file?"
First of all, all metadata shouldn't be removed from some file types (such as RAW images) because this information is necessary for display of the image. JPEG is the most popular image format and most suited to erasing all metadata because the image and metadata are well separated in this format. However, even with JPEG images care should be taken because the metadata may contain color space information which should be maintained to preserve the color rendition.
Here is a command that may be used to safely delete all metadata from .JPG images in a directory:
exiftool -ext jpg -all= --icc_profile:all -tagsfromfile @ -colorspacetags DIR
This command deletes all metadata except the ICC Profile if it exists, then copies back any EXIF color space tags (adding any mandatory EXIF tags using default values if necessary).

This would fix [Warning] [Exiftool] Warning: ICC_Profile deleted. Image colors may be affected.

image

#3166 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants