ExifTool Forum

ExifTool => Newbies => Topic started by: cameronsamson on October 31, 2018, 09:57:53 AM

Title: Incomplete Metadata transfer
Post by: cameronsamson on October 31, 2018, 09:57:53 AM
When Copying my metadata from one image to another image, not all the metadata is transferred. I've tried using the all:all and -xmp options, but no luck.

exiftool.exe -ext TIF -TagsFromFile  C:/RCalibration/IMG_180810_150049_0010_RED.TIF C:/RCalibration/Images_Corrected/CorrectedIMG_180810_150049_0010_RED.TIF

I've attached a photo of the exif data where the left image is the metadata of the original image while the right is the new image with the missing information that now has a Sample Format : Float and XMP Toolkit : image::Exiftool 10.65 instead.

I've attached also a sample of the original photo with all the metadata.

Note that the Yellow boxes are is the data that I really need, but would like to preserve all of it if possible.

Any assistance would be greatly appreciated. I will have 1000 + photos to do this for but want to start with one before I do them all. 
Title: Re: Incomplete Metadata transfer
Post by: Phil Harvey on October 31, 2018, 10:05:17 AM
Did you try -all:all and -xmp together?

If so, specifically what tags weren't copied (from the exiftool -G1 -a output)?

- Phil
Title: Re: Incomplete Metadata transfer
Post by: cameronsamson on October 31, 2018, 10:21:05 AM
Yes I've tried them together.

Running the exiftool -G1 -a for both images I see that the XMP-Camera are the tags that missing, and I get an XMP-x instead which is the XMP Toolkit : image::Exiftool 10.6.
Title: Re: Incomplete Metadata transfer
Post by: Phil Harvey on October 31, 2018, 10:52:48 AM
What you describe will happen if the XMP tags are copied individually (ExifTool doesn't have definitions for the tags you want to write, so they won't get written).

But when I try with -all:all -xmp, then the xmp gets copied as a block:

> exiftool a.tif -G1 -a -e
[ExifTool]      ExifTool Version Number         : 11.17
[System]        File Name                       : a.tif
[System]        Directory                       : .
[System]        File Size                       : 1288 bytes
[System]        File Modification Date/Time     : 2018:10:31 10:51:08-04:00
[System]        File Access Date/Time           : 2018:10:31 10:51:13-04:00
[System]        File Inode Change Date/Time     : 2018:10:31 10:51:08-04:00
[System]        File Permissions                : rw-r--r--
[File]          File Type                       : TIFF
[File]          File Type Extension             : tif
[File]          MIME Type                       : image/tiff
[File]          Exif Byte Order                 : Big-endian (Motorola, MM)
[IFD0]          Subfile Type                    : Full-resolution Image
[IFD0]          Image Width                     : 160
[IFD0]          Image Height                    : 120
[IFD0]          Bits Per Sample                 : 8 8 8
[IFD0]          Compression                     : LZW
[IFD0]          Photometric Interpretation      : RGB
[IFD0]          Strip Offsets                   : 240
[IFD0]          Orientation                     : Horizontal (normal)
[IFD0]          Samples Per Pixel               : 3
[IFD0]          Rows Per Strip                  : 120
[IFD0]          Strip Byte Counts               : 1048
[IFD0]          Min Sample Value                : 0
[IFD0]          X Resolution                    : 96.012
[IFD0]          Y Resolution                    : 96.012
[IFD0]          Planar Configuration            : Chunky
[IFD0]          Resolution Unit                 : inches
[IFD0]          Predictor                       : None

> exiftool a.tif -tagsfromfile ~/Desktop/IMG_180810_150049_0010_RED.TIF -all:all -xmp
    1 image files updated

> exiftool a.tif -G1 -a -e
[ExifTool]      ExifTool Version Number         : 11.17
[System]        File Name                       : a.tif
[System]        Directory                       : .
[System]        File Size                       : 6.2 kB
[System]        File Modification Date/Time     : 2018:10:31 10:51:43-04:00
[System]        File Access Date/Time           : 2018:10:31 10:51:44-04:00
[System]        File Inode Change Date/Time     : 2018:10:31 10:51:43-04:00
[System]        File Permissions                : rw-r--r--
[File]          File Type                       : TIFF
[File]          File Type Extension             : tif
[File]          MIME Type                       : image/tiff
[File]          Exif Byte Order                 : Big-endian (Motorola, MM)
[IFD0]          Subfile Type                    : Full-resolution Image
[IFD0]          Image Width                     : 160
[IFD0]          Image Height                    : 120
[IFD0]          Bits Per Sample                 : 8 8 8
[IFD0]          Compression                     : LZW
[IFD0]          Photometric Interpretation      : RGB
[IFD0]          Image Description               : 660 nm
[IFD0]          Make                            : Parrot
[IFD0]          Camera Model Name               : Sequoia
[IFD0]          Strip Offsets                   : 5318
[IFD0]          Orientation                     : Horizontal (normal)
[IFD0]          Samples Per Pixel               : 3
[IFD0]          Rows Per Strip                  : 120
[IFD0]          Strip Byte Counts               : 1048
[IFD0]          Min Sample Value                : 0
[IFD0]          X Resolution                    : 96.012
[IFD0]          Y Resolution                    : 96.012
[IFD0]          Planar Configuration            : Chunky
[IFD0]          Resolution Unit                 : inches
[IFD0]          Software                        : v1.6.0
[IFD0]          Modify Date                     : 2018:08:10 15:00:49
[IFD0]          Predictor                       : None
[IFD0]          Camera Serial Number            : PI040378AD7E003405
[XMP-Camera]    Rig Name                        : Sequoia
[XMP-Camera]    Rig Camera Index                : 1
[XMP-Camera]    Yaw                             : -109.679008
[XMP-Camera]    Pitch                           : 15.688569
[XMP-Camera]    Roll                            : -27.455072
[XMP-Camera]    Band Gain                       : 1.000000
[XMP-Camera]    Sensor Temperature              : 44.285706
[XMP-Camera]    Line Readout Time               : 23076
[XMP-Camera]    Rig Relatives                   : -0.279537757572158,-0.262096797823677,-0.219381665532939
[XMP-Camera]    Principal Point                 : 2.349144,1.852856
[XMP-Camera]    Model Type                      : fisheye
[XMP-Camera]    Fisheye Affine Symmetric        : 1
[XMP-Camera]    Fisheye Affine Matrix           : 1654.416175233,0,0,1654.416175233
[XMP-Camera]    Fisheye Polynomial              : 0,1,0.01624296,-0.157514859
[XMP-Camera]    GPSXY Accuracy                  : 1.436841
[XMP-Camera]    GPSZ Accuracy                   : 1.780000
[XMP-Camera]    Flight UUID                     : 068B0B042E41EE82F5789932653F8972
[XMP-Camera]    Capture UUID                    : 0FC4DB0CA23D413F0ACC1686C063B412
[XMP-Camera]    Sunshine Serial Number          : PI040379BB7E003864
[XMP-Camera]    Irradiance Calibration Measurement: 0,600,33,8,1,600,829,216,2,600,13803,3468,3,600,65535,65535
[XMP-Camera]    Calibration Measurement         : 1,0.00258397932816537,475
[XMP-Camera]    Calibration Picture             : 0
[XMP-Camera]    Irradiance Calibration Measurement Golden: 0,600,33,8.,1,600,818,210.,2,600,13685,3462.,3,600,65535,65535.
[XMP-Camera]    Irradiance Sensitivities Golden : 367.84662,97.5327952
[XMP-Camera]    Irradiance Unit Scale           : 1.7873713395012918
[XMP-Camera]    Sensor Model                    : 286388.8369833669,4806.560880147375,2710.395411212246..
[XMP-Camera]    Band Name                       : Red
[XMP-Camera]    Central Wavelength              : 660.000000
[XMP-Camera]    Wavelength FWHM                 : 40.000000
[XMP-Camera]    Black Current                   : 74.000000
[XMP-Camera]    Vignetting Polynomial 2D Name   : 0,0,1,0,2,0,3,0,4,0,0,1,0,2,0,3,0,4,1,1,1,2,1,3,2,1,2,2,3,1
[XMP-Camera]    Vignetting Polynomial 2D        : 0.7422136398110826,0.9061241388183113,-1.5647117532856267,1.3786851369520510,-0.6896885614563255,0.3931864000954742,-0.4364527583618750,0.1273953502954109,-0.0742100809095975,-0.7461964629176689,0.6854758642005763,0.0314514693811657,0.7260017435123985,-0.7889781518396404,0.0887370881741938
[XMP-Camera]    Invalid Pixel                   : 413,298,684,351,1092,545,684,351,1009,425
[XMP-Camera]    Irradiance List                 : ..y/MVFQAAAAAwDqoDAQBkAPF/+8K0VUbAt+T+wA8IGRUAAAAAgg7AAwEAZAAgJPfCBSkywN7OCcG+DhwVAAAAANUO1QMBAGQAS5n3wloeOUDCOEjB1B0fFQAAAADxDx4EAQBkAEgx+MJlFzdAVdYywTw2IhUAAAAAjhBHBAEAZABQPQDDOFZmQJunN8GfPSUVAAAAAKAQTAQBAGQACx4FwzHiU0D9ZdTAe0koFQAAAABLEDYEAQBkABLFBsM07OA/r0ZlwMpVKxUAAAAA9Q8fBAEAZACXyAXDXCEqP7Zvc8B1ZS4VAAAAACAQKgQBAGQAo1gFw2v6yr46wP7AJ2sxFQAAAACbEEsEAQBkAEvaBsOj2B3AssIKwTBwNBUAAAAAcRBABAEAZADO3AvDVBGIvob+8MDEejcVAAAAAI8QSAQBAGQAnPEQw/I79rtzp/LA..
[ExifIFD]       Exposure Time                   : 1/5417
[ExifIFD]       F Number                        : 2.2
[ExifIFD]       Spectral Sensitivity            : 660 nm
[ExifIFD]       ISO                             : 100
[ExifIFD]       Exif Version                    : 0231
[ExifIFD]       Date/Time Original              : 2018:08:10 15:00:49
[ExifIFD]       Create Date                     : 1970:01:01 00:05:56
[ExifIFD]       Components Configuration        : Y, Cb, Cr, -
[ExifIFD]       Shutter Speed Value             : 1/5417
[ExifIFD]       Aperture Value                  : 2.2
[ExifIFD]       Max Aperture Value              : 2.2
[ExifIFD]       Focal Length                    : 4.0 mm
[ExifIFD]       Image Number                    : 10
[ExifIFD]       Maker Note Unknown Text         : 0.2
[ExifIFD]       Sub Sec Time                    : 859576
[ExifIFD]       Sub Sec Time Original           : 859576
[ExifIFD]       Sub Sec Time Digitized          : 090090
[ExifIFD]       Flashpix Version                : 0100
[ExifIFD]       Color Space                     : Uncalibrated
[ExifIFD]       Exif Image Width                : 1280
[ExifIFD]       Exif Image Height               : 960
[ExifIFD]       Focal Plane X Resolution        : 266.6666559
[ExifIFD]       Focal Plane Y Resolution        : 266.6666559
[ExifIFD]       Focal Plane Resolution Unit     : mm
[ExifIFD]       Exposure Mode                   : Auto
[ExifIFD]       Focal Length In 35mm Format     : 30 mm
[ExifIFD]       Image Unique ID                 : 467943F81A03EE82353C315D295B7F8B
[ExifIFD]       Serial Number                   : PI040378AD7E003405
[GPS]           GPS Version ID                  : 2.2.0.0
[GPS]           GPS Latitude Ref                : North
[GPS]           GPS Latitude                    : 45.348917
[GPS]           GPS Longitude Ref               : West
[GPS]           GPS Longitude                   : 76.057658
[GPS]           GPS Altitude Ref                : Above Sea Level
[GPS]           GPS Altitude                    : 213.0298103 m
[GPS]           GPS Time Stamp                  : 15:00:47.671001
[GPS]           GPS Status                      : Measurement Active
[GPS]           GPS Speed Ref                   : km/h
[GPS]           GPS Speed                       : 43.54433172
[GPS]           GPS Map Datum                   : WGS-84
[GPS]           GPS Date Stamp                  : 2018:08:10


- Phil
Title: Re: Incomplete Metadata transfer
Post by: cameronsamson on October 31, 2018, 11:09:57 AM
Thanks Phil! I solved it by rearranging the code in the exact same format you had and it worked (although I'm not sure why)!

Really loving exiftool its an amazing program! :)   
Title: Re: Incomplete Metadata transfer
Post by: Phil Harvey on October 31, 2018, 11:39:23 AM
It wouldn't work if you put the -xmp before the -tagsFromFile option, but other than that order shouldn't matter.  If you post the exact command that didn't work I can tell you why.

- Phil