ExifTool Forum

ExifTool => Newbies => Topic started by: Dion on May 07, 2014, 11:16:42 AM

Title: Exif IFD0 pointer broken
Post by: Dion on May 07, 2014, 11:16:42 AM
I write my own camera app. this app write exif information in the jpg-file.
all goes well so far ...
but I have problems with some warnings:

Warning Invalid EXIF text encoding
Warning Invalid size (8589934590) for IFD0 tag 0x8827
Warning Bad IFD1 directory

i dont know how i can fix them??

i know that my pointer is broken because false exif inforamtions were shown in the exif tool
Title: Re: Exif IFD0 pointer broken
Post by: Phil Harvey on May 07, 2014, 11:26:16 AM
You should use the -htmldump feature to take a look at what you have written.  This should help you to see what is wrong.

- Phil
Title: Re: Exif IFD0 pointer broken
Post by: Dion on May 08, 2014, 03:35:17 AM
okay thx,
i looked and found out that my app writes the exif information with a littel endian instead of a big endian. can it be this problem that my IDF0 pointer is not correct?
Title: Re: Exif IFD0 pointer broken
Post by: Phil Harvey on May 08, 2014, 07:19:20 AM
You can write either, but you need to be consistent with the ordering specified in the TIFF header.

- Phil
Title: Re: Exif IFD0 pointer broken
Post by: Dion on May 08, 2014, 10:53:23 AM
thank you for the help your help has brought me to the decisive point.  i found a solution for the problem. the exifinterface class i use in android is underdeveloped. it writes a false endian in the exif/TIFF header... now i use a extern lib ( apache sanselan lib v1.02) it writes/reads/edits the exif information on binary code.