ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: movingphotos on June 09, 2024, 10:27:25 AM

Title: Copyright woes
Post by: movingphotos on June 09, 2024, 10:27:25 AM
I'm writing an AppleScript.


Everything works in this line

set exiftoolCommandOrig to exiftoolPath & " -all= --icc_profile:all -CopyrightNotice -overwrite_original " & quoted form of outputPathOrig

My source is a TIFF file and I'm converting to a resized JPG. It keeps the Adobe 1998 color space here, but no matter what I or ChatGPT come up with, we cannot keep Copyright Notice. I can keep every other tag from Author but Copyright, the most important item, cannot be kept.

Anything wrong with my line here?
Title: Re: Copyright woes
Post by: StarGeek on June 09, 2024, 10:34:50 AM
You need to copy the tag back into the file.

Something like
set exiftoolCommandOrig to exiftoolPath & " -all= --icc_profile:all -TagsFromFile @ -CopyrightNotice -overwrite_original " & quoted form of outputPathOrig

From the docs on the --TAG option (https://exiftool.org/exiftool_pod.html#TAG1)
QuoteBut note that this will not exclude individual tags from a group delete (unless a family 2 group is specified, see note 4 below). Instead, individual tags may be recovered using the -tagsFromFile option (eg. -all= -tagsfromfile @ -artist).