Skip to content

Script to convert from Corel AfterShot Pro XMP to standard XMP

License

Notifications You must be signed in to change notification settings

marcoil/afp2xmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

afp2xmp.py

Convert from Corel AfterShot Pro XMP to standard XMP.

Usage

usage: afp2xmp.py [-h] [-o OUTPUT] [-p] [-r] input [input ...]

Convert from Corel AfterShot Pro XMP to standard XMP.

positional arguments:
  input                 The AfterShot Pro XMP files to read or, with the -r argument,
                        the directories to traverse.

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        File to write result to. If not set, rewrite the input file.
                            Some markers are substituted:
                            {d}: The input file directory
                            {f}: The full input file name
                            {o}: The original image file name
                            {n}: The original image file name without extension
                            {e}: The original image file extension
                            The .xmp extension is added if not present.
  -p, --preserve        Preserve the output file's timestamps.
  -r, --recursive       Operate over all files in input directory and subdirectories.
  -w, --overwrite       Overwrite standard XMP fields even if alredy present.

Examples

afp2xmp.py dsc09999.raw.xmp

Add standard XMP data into dsc09999.raw.xmp.

afp2xmp.py -p -w dsc09999.raw.xmp

The same, but preserve the file timestamps and overwrite any already existing standard XMP field.

afp2xmp.py -o {e} dsc09999.raw.xmp

Extract the XMP data to dsc09999.xmp.

afp2xmp.py -r /home/photog/RAW/

Add standard XMP data to all XMP files in /home/photog/RAW and its subdirectories.

afp2xmp.py -r -o {d}/xmps/{f} /home/photog/RAW/

Extract the data from all XMP files in /home/photog/RAW and its subdirectories into XMP files in /home/photog/RAW/xmps/, keeping the subdirectory structure and file names.

About

Script to convert from Corel AfterShot Pro XMP to standard XMP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages