[Originally posted by msdobrescu on 2009-04-06 08:55:45-07]
Hello,
I have a set of files named a1.jpg, a2.jpg .. a33.jpg.
I need to copy exif data from them to existing set of files named b1.png, b2.png .. b33.png.
What is the right command?
Thanks in advance,
Mike
[Originally posted by exiftool on 2009-04-06 11:13:25-07]Hi Mike,
This depends on what form you want the information stored
in the PNG. The basic command would look like this:
exiftool -tagsfromfile %da%.1f.jpg -ext png dir
(where
dir is a directory containing all the images).
However, if you want it in native PNG format and XMP, then
this command line will do it:
exiftool -tagsfromfile %da%.1f.jpg "-all>png:all" "-all>xmp:all" -ext png dir
Or if you want it in the original metadata format, use
this:
exiftool -tagsfromfile %da%.1f.jpg -all:all -ext png dir
Which one you choose depends on which format(s) are understood
by the software you want to read the information.
- Phil
[Originally posted by msdobrescu on 2009-04-06 16:17:10-07]
Thanks,
'.1f' will take 1, 2, .. 33 from the file name?
I also try to remove some keywords from the iptc, and it does nothing. What is the magic combination?
Regards,
Mike
[Originally posted by msdobrescu on 2009-04-06 16:42:51-07]
Wow,
Amazingly, not -keywords-="key", but -Subject-="key" was the correct option.
[Originally posted by exiftool on 2009-04-06 16:48:02-07]
'%.1f' takes substring of the file name, ignoring 1 character
at the beginning. (See the -w option description
in the exiftool application documentation for all the gory
details.)
'Subject' is the XMP equivalent of IPTC 'Keywords'.
- Phil
[Originally posted by msdobrescu on 2009-04-06 17:43:04-07]
Thanks so much!
Is there nothing so powerful as your tool!