Error: Can't read ExifIFD data

Started by Plenz, July 25, 2016, 05:37:31 AM

Previous topic - Next topic

Plenz

The attached photo creates the error message "Can't read ExifIFD data" if I try -m -documentname="XYZ" or -m -model="XYZ"

IrfanView has no problems to display EXIF data. So I wonder what is wrong and how I can fix it.

This is what IrfanView is able to read:
QuoteFilename - senkrecht.jpg
ImageWidth - 4746
ImageLength - 5358
BitsPerSample - 8 8 8
Compression - 1 (None)
PhotometricInterpretation - 2
StripOffset - 24576
Orientation - Top left
SamplesPerPixel - 3
RowsPerStrip - 5358
StripByteCount - 76287204
XResolution - 362
YResolution - 362
PlanarConfiguration - 1
ResolutionUnit - Inch
Software - Adobe Photoshop CS2 Windows
DateTime - 2010:07:08 15:31:46
Artist - kubit PhoToPlan
IPTC/NAA - 15650
ExifOffset - 76311780

This is what remains if I repair the file according to FAQ 20:
QuoteFilename - bad.jpg
Orientation - Top left
XResolution - 362
YResolution - 362
ResolutionUnit - Inch
Software - Adobe Photoshop CS2 Windows
DateTime - 2010:07:08 15:31:46
Artist - kubit PhoToPlan
YCbCrPositioning - Centered

(Please don't be confused by the Image Width/Height values. I resized to original photo for easy upload.)

Phil Harvey

The EXIF in this file is a real mess.  It is basically a TIFF file inside a JPEG, which is comletely wrong, and the ExifIFD offset points into low earth orbit.  ExifTool won't write such a mess, so the TIFF parts are lost when you rebuild the image with ExifTool.  The ExifIFD is completely missing, so that information is gone anyway.  It is just the stuff in IFD0 that shouldn't be there in the first place that is lost when ExifTool rebuilds the file.

This is interesting because I have never seen such a thing before.

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

Plenz

Thank you for examinating. Perhaps "kubit PhoToPlan" creates those rubbish?
Anyway... I got a bunch of those photos from a company and I have to deal with them somehow.
I think I use the FAQ 20 solution and don't care too much about missing tags.

But I wonder... can IrfanView do things which ExifTool is not able to do...?

Phil Harvey

Quote from: Plenz on July 25, 2016, 07:41:26 AM
But I wonder... can IrfanView do things which ExifTool is not able to do...?

If IrfanView can write garbage, then the answer is "yes!". ;)

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