1pmltrans(1) General Commands Manual pmltrans(1)
2
3
4
6 pmltoxmp ‐ convert a PhotoML file to XMP format
7
9 pmltoxmp [-h] [-n] (([-o path] [-s fstr]) | ([-g fid] [-f gid])) [xml‐
10 file]
11
13 pmltoxmp is a shell script that calls xsltproc to transform a subset of
14 data in a PhotoML XML file into XMP format. If a single frame is speci‐
15 fied for output, it is written to stdout, otherwise a separate output
16 file is written for each frame in the PhotoML file.
17
18 The primary purpose of conversion to XMP format is to allow a subset of
19 PhotoML data to be included in the metadata of a digital image by using
20 the exiftool utility, which can use XMP data as input. For example,
21 assuming that PhotoML data for roll 2001r12 is in file photoml.xml, and
22 file 2001r22f01n01.jpg is a scan of frame 01 on that roll, the follow‐
23 ing commands would copy a subset of the PhotoML data into the EXIF
24 metadata of the digital image:
25
26 pmltoxmp -g 2001r12 -f 01 photoml.xml > tmp.xmp
27 exiftool -TagsFromFile tmp.xmp 2001r22f01n01.jpg
28
30 pmltoxmp accepts the following options:
31
32 -h Display usage information.
33
34 -n Omit the validity test prior to applying the XSL.
35
36 -o path Specify the output path. The default value is ".".
37
38 -s fstr Specify image id format string. This format is used to con‐
39 struct both the EXIF DocumentName value and the output filename
40 (when relevant). Occurrences of "%g" and "%f" in this string
41 are substituted with the group and frame ids respectively. The
42 default value is "%gf%f".
43
44 -g gid Specify id of group containing frame to convert.
45
46 -f fid Specify id of frame to convert.
47
49 Brendt Wohlberg <photoml@wohlberg.net>
50
52 Copyright © 2010,2011 Brendt Wohlberg <photoml@wohlberg.net>
53
54 This program is free software; you can redistribute it and/or modify it
55 under the terms of version 2 of the GNU General Public License
56 <http://www.gnu.org/licenses/gpl-2.0.txt>.
57
58 This program is distributed in the hope that it will be useful, but
59 WITHOUT ANY WARRANTY; without even the implied warranty of MER‐
60 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
61 Public License for more details.
62
64 xsltproc(1) exiftool(1)
65
66
67
68 28 January pmltrans(1)