I just discovered that GIMP 2.10 removes JPG EXIF data because of the "PENTAX" in uppercase present in the EXIF data (the bug is described here and here).
Tried Exif Pilot freeware and found out the EXIF fields:
Make=PENTAX
Model=PENTAX K-x
Fixing them to "Pentax K-x" and "Pentax" solves the problem but requires me to do it manually one by one in Exif Pilot GUI.
Is there any way to do this as batch for a whole folder with JPG files? I tried to find some Exiftool parameters to replace "PENTAX" with "Pentax" but to keep the model information correctly but no success so I would appreciate help.
thanks
Using exiftool, you could use this command
exiftool -api "filter=s/PENTAX/Pentax/" -TagsFromFile @ -Model -Make /path/to/files/
The -api Filter
option will do a regex substitution changing PENTAX
into Pentax
. The -TagsFromFile
option will copy the modified Model
and Make
tags back into the file. It will not affect any file that doesn't contain PENTAX
in those two tags.
This command creates backup files. Add -overwrite_original
to suppress the creation of backup files. Add -r
to recurse into subdirectories.