radiometric Rjpeg / tiff

Started by malcolmdavidge, January 09, 2020, 04:17:52 PM

Previous topic - Next topic

malcolmdavidge

Hello,

I have an challenging issue whereby a dji XT camera is recording radiometric data, but the visible image on the the raw RJPEG is shifted by a number of pixels.
If i convert to the raw TIFF then the image is correct, so i am trying to keep the radiometric data and combine it with the correct image.

i have tried this exiftool -tagsFromFile DJI_0507.jpg -xmp DJI_0507tif2jpg.jpg

but got the following error Error: Error reading StripOffsets data in IFD0 - DJI_0507tif2jpg.jpg

please could anyone give me some advice? needless to say there are 1000's of files so i am going to need to do it as a batch.
Many thanks

Phil Harvey

Whatever wrote the tif2jpg file is writing stuff that it shouldn't.  These files must be cleaned up before you can use ExifTool to write to them.  See FAQ 20 for how to do this.

- 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 ($).

malcolmdavidge

thank you phil,

the file was saved as a jpeg from a tiff file in Ifanviewer - is this achievable with exiftool?
i ran the repair as per exiftool -all= -tagsfromfile @ -all:all -unsafe -icc_profile DJI_0507T2J.jpg

then i retried Exiftool -tagsFromFile DJI_0507.jpg -xmp DJI_0507T2J.jpg, which updated the file, however it didnt have the desired result. i lost the radiometric data and GPS for example. 

files attached  :)

Phil Harvey

I don't know what you mean by radiometric data, but the XMP is the same in both files you posted:

% exiftool tmp/DJ* -xmp:all
======== tmp/DJI_0507.JPG
About                           : DJI Meta Data
Absolute Altitude               : -0.592674
Relative Altitude               : 53.500000
Gimbal Roll Degree              : 0.000000
Gimbal Yaw Degree               : 16.200001
Gimbal Pitch Degree             : -90.000000
Flight Roll Degree              : 4.800000
Flight Yaw Degree               : 14.200000
Flight Pitch Degree             : 4.300000
Cam Reverse                     : 0
Gimbal Reverse                  : 0
Rtk Flag                        : 0
======== tmp/DJI_0507T2J.jpg
About                           : DJI Meta Data
Absolute Altitude               : -0.592674
Relative Altitude               : 53.500000
Gimbal Roll Degree              : 0.000000
Gimbal Yaw Degree               : 16.200001
Gimbal Pitch Degree             : -90.000000
Flight Roll Degree              : 4.800000
Flight Yaw Degree               : 14.200000
Flight Pitch Degree             : 4.300000
Cam Reverse                     : 0
Gimbal Reverse                  : 0
Rtk Flag                        : 0
    2 image files read


See FAQ 3 for help figuring out what you want to copy.

- 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 ($).