Export to a sidecar file

Started by Andy, June 14, 2013, 06:14:24 AM

Previous topic - Next topic

Andy

Hi

I'm trying to export all XMP and IPTC from alote of old images to XMP sidecar files.
The problem i have is that the sidecar files dosen't include all the metadata that are inside the image.
For a example IPTC Caption-Abstract and By-line is missing.

Here is the metadata inside the image:

---- ExifTool ----
ExifTool Version Number         : 9.31
---- System ----
File Name                       : test2.jpg
Directory                       : .
File Size                       : 2.3 MB
File Modification Date/Time     : 2010:01:18 18:48:50+01:00
File Access Date/Time           : 2013:06:14 11:37:07+02:00
File Inode Change Date/Time     : 2013:06:14 08:34:39+02:00
File Permissions                : r-x------
---- File ----
File Type                       : JPEG
MIME Type                       : image/jpeg
Current IPTC Digest             : e96c91b7cb147c743046b8ad9e61601e
Comment                         : AppleMark.
Image Width                     : 2598
Image Height                    : 1720
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:2 (2 1)
---- JFIF ----
JFIF Version                    : 1.01
Resolution Unit                 : inches
X Resolution                    : 219
Y Resolution                    : 219
---- IPTC ----
Application Record Version      : 2
Caption-Abstract                :  *** Local Caption *** Anders eriksson
Headline                        : HV71
By-line                         : PŠr GrŠnnš
By-line Title                   : Jšnkšping
Credit                          : Thorbjšrn
Date Created                    : 2005:02:14
Edit Status                     : 1
Short Document ID               : 3554724072
Unique Document ID              : B8ED55C32657467A 92162ACDB678AB89
IPTC Application Record 219     : Bildarkiv
Similarity Index                : 382379855662233899
Document History                :  mŒn 14 feb 2005 14.33.17
---- Photoshop ----
Macintosh Print Info            : .HH....????.+.7.G.{.?.HH.....d....?.'...`...?.
X Resolution                    : 219.96
Displayed Units X               : inches
Y Resolution                    : 219.96
Displayed Units Y               : inches
Global Angle                    : 120
Print Flags                     : 0 0 0 0 0 0 0 0
Copyright Flag                  : False
Print Flags Info                : ..
Color Halftoning Info           : /ff.lff../ff.???..2.Z..5.-..
Color Transfer Funcs            : ??????????????????????.???????????????????????.???????????????????????.???????????????????????.?
Grid Guides Info                : ..@.@
IDs Base Value                  : 1
Photoshop Thumbnail             : (Binary data 5710 bytes, use -b option to extract)
Photoshop Quality               : 12
Photoshop Format                : Standard
Progressive Scans               : 3 Scans
---- FotoStation ----
Original Image Width            : 2598
Original Image Height           : 1720
Color Planes                    : 3
XY Resolution                   : 219.964
Rotation                        : 0
Crop Left                       : 0%
Crop Top                        : 0%
Crop Right                      : 0%
Crop Bottom                     : 0%
Crop Rotation                   : 0
Thumbnail Image                 : (Binary data 13569 bytes, use -b option to extract)
Preview Image                   : (Binary data 76939 bytes, use -b option to extract)
---- IPTC2 ----
Application Record Version      : 2
Caption-Abstract                :  *** Local Caption *** Anders eriksson
Headline                        : HV71
By-line                         : PŠr GrŠnnš
By-line Title                   : Jšnkšping
Credit                          : Thorbjšrn
Date Created                    : 2005:02:14
Edit Status                     : 1
Short Document ID               : 3554724072
Unique Document ID              : B8ED55C32657467A 92162ACDB678AB89
IPTC Application Record 219     : Bildarkiv
Similarity Index                : 382379855662233899
Document History                :  mŒn 14 feb 2005 14.33.17
IPTC Application Record 240     :
---- Composite ----
Image Size                      : 2598x1720


If I run the command:

exiftool -tagsfromfile test2.jpg -all test.xmp


I get this output

<?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?>
<x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Image::ExifTool 9.31'>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>

<rdf:Description rdf:about=''
  xmlns:photomechanic='http://ns.camerabits.com/photomechanic/1.0/'>
  <photomechanic:EditStatus>1</photomechanic:EditStatus>
</rdf:Description>

<rdf:Description rdf:about=''
  xmlns:photoshop='http://ns.adobe.com/photoshop/1.0/'>
  <photoshop:Credit>Thorbjšrn</photoshop:Credit>
  <photoshop:DateCreated>2005-02-14</photoshop:DateCreated>
  <photoshop:Headline>HV71</photoshop:Headline>
</rdf:Description>

<rdf:Description rdf:about=''
  xmlns:tiff='http://ns.adobe.com/tiff/1.0/'>
  <tiff:BitsPerSample>
   <rdf:Seq>
    <rdf:li>8</rdf:li>
   </rdf:Seq>
  </tiff:BitsPerSample>
  <tiff:ImageLength>1720</tiff:ImageLength>
  <tiff:ImageWidth>2598</tiff:ImageWidth>
  <tiff:ResolutionUnit>2</tiff:ResolutionUnit>
  <tiff:XResolution>5499/25</tiff:XResolution>
  <tiff:YCbCrSubSampling>
   <rdf:Seq>
    <rdf:li>2</rdf:li>
    <rdf:li>1</rdf:li>
   </rdf:Seq>
  </tiff:YCbCrSubSampling>
  <tiff:YResolution>5499/25</tiff:YResolution>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end='w'?>


What can I do to extract all the information?

Best regards

// Andy

Phil Harvey

Hi Andy,

In the full ExifTool distribution you will find "arg_files/iptc2xmp.args".  This file may be used to convert all standard IPTC information to XMP (all it does is copy the IPTC tags to the appropriately-named XMP tags).   If you also want to pass the XMP, your command may look something like this:

exiftool -@ iptc2xmp.args -xmp:all -srcfile %d%f.xmp -ext jpg DIR

where DIR is the name of the directory containing the JPG images.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Andy


Work like a charm  ;D
Thanks for a great app!

// Andy