A small python wrapper around exiftool. Several image processing tools like RawTherapee omit meta data while creating processed images. This especially includes the GPS location and the tag list (e.g. created by digiKam) but in general all IPTC and XMP information. This script copies the respective Exif, IPTC and XMP tags to the processed images and simplifies the job by deducing the name of the original image files from the target file names.
Usage
usage: copyiptcandxmp [-h] -o DIR [-e [EXTENSION [EXTENSION ...]]] [-x] [-i]
[-g] [-t]
FILE [FILE ...]
A script to easily copy XMP and IPTC infos, like GPS and tag information (as
e.g. produced by digiKam), from original images to processed images (e.g. by
RawTherapee). Several processing tools omit this aspect of meta data.
positional arguments:
FILE target files to adjust metadata of
optional arguments:
-h, --help show this help message and exit
-o DIR, --originals DIR
folder containing the original images to get the tags
from
-e [EXTENSION [EXTENSION ...]], --exts [EXTENSION [EXTENSION ...]]
extensions of the original files
-x, --xmp Copy all XMP data
-i, --iptc Copy all IPTC data
-g, --gps Copy GPS information
-t, --tags Copy tags
Getting the Code
The source code is available in my svn:
https://ssl.semipol.de/svn/projects/copyiptcandxmp/
Login with user name anonymous and password anonymous.
License
The source code is released under the terms of the GNU General Public License (GPL), version 3.
