ExifTool Forum

ExifTool => Newbies => Topic started by: btb64 on January 17, 2023, 06:28:47 AM

Title: 'ExifTool Version Number' added to exif data after modifying
Post by: btb64 on January 17, 2023, 06:28:47 AM
I can successfully modify and rewrite exif data, but the new file has a line added to the top of the exif data as follows

ExifTool Version Number         : 12.50
Is it possible to edit exif without this new line being added?

Thank you
Title: Re: 'ExifTool Version Number' added to exif data after modifying
Post by: FixEUser on January 17, 2023, 07:27:56 AM
If you load your file into a an (hex-)editor, you will see that this information is NOT saved into your files. It is only displayed using ExifTool.
Title: Re: 'ExifTool Version Number' added to exif data after modifying
Post by: btb64 on January 17, 2023, 07:46:49 AM
Thank you very much, that's really good to know.
Title: Re: 'ExifTool Version Number' added to exif data after modifying
Post by: FixEUser on January 17, 2023, 08:00:28 AM
BTW: The current version of ExifTool is 12.54 (Jan. 6, 2023) (https://exiftool.org/)
Your 12.50 is the most recent (https://exiftool.org/history.html) production release.
Title: Re: 'ExifTool Version Number' added to exif data after modifying
Post by: btb64 on January 17, 2023, 09:18:23 AM
Thanks for that, it's the latest version in the Arch Linux repo, so I'll wait for them to catch in due course. Nice to know the progress though.
Title: Re: 'ExifTool Version Number' added to exif data after modifying
Post by: StarGeek on January 17, 2023, 11:09:03 AM
If you use the command in FAQ #3 (https://exiftool.org/faq.html#Q3) (which should be your default command), you will see that ExifToolVersion belongs to the ExifTool group, which isn't the name of any embedded tag group.

Other group names that you would across that are not embedded data, with a few exceptions, include the System, File, and Composite groups.  See the Extra tags page (https://exiftool.org/TagNames/Extra.html) and Composite tags page (https://exiftool.org/TagNames/Composite.html) for more details.

When writing XMP data, exiftool will put it's name in the XMP:XMPToolkit tag like this
[XMP-x]        XMPToolkit                      : Image::ExifTool 12.54but this is standard and you'll find most programs will write this tag with the name of the XMP code used to write it.

You can tell exiftool not to write XMPToolkit by including
-XMPToolkit=
after all other assignments in the command line.
Title: Re: 'ExifTool Version Number' added to exif data after modifying
Post by: Phil Harvey on January 17, 2023, 01:18:56 PM
Quote from: StarGeek on January 17, 2023, 11:09:03 AMYou can tell exiftool not to write XMPToolkit by including
-XMPToolkit=
after all other assignments in the command line.

I'm just wondering why you recommend putting it after all other assignments?  I thought it should work in any location.

- Phil
Title: Re: 'ExifTool Version Number' added to exif data after modifying
Post by: StarGeek on January 17, 2023, 06:05:24 PM
Ah yes.  A misunderstanding of note 4 of -TagsFromFile option (https://exiftool.org/exiftool_pod.html#tagsFromFile-SRCFILE-or-FMT).  I was thinking that if the source file had XMPToolkit and it was cleared before the -TagsFromFile, then it could get copied back in.  Something like
exiftool -XMPToolkit= -TagsFromFile @ -all:all file.jpg
would clear it and then copy it back in.  But I can see I was mistaken.
Title: Re: 'ExifTool Version Number' added to exif data after modifying
Post by: Phil Harvey on January 17, 2023, 06:17:09 PM
Yes.  XMPToolkit is "unsafe", so it isn't copied with "All".

- Phil
Title: Re: 'ExifTool Version Number' added to exif data after modifying
Post by: btb64 on January 18, 2023, 04:06:18 AM
Thank you for the extra information around this, I missed the FAQ regarding writing  XMPToolkit.

There is a lot to take in for new users, thanks for the ongoing discussion.