2009.02.14 11:55 "[Tiff] Different output with the same image???", by blp330

2009.02.16 12:03 "Re: [Tiff] Different output with the same image???", by Gerben Vos

Here is two tiff that generated by the same image but different output:

The only one byte different is in position 0x5d0d One is 0x5C, another one is 0x00

This is a padding byte, after the image data but before the IFD (directory), because the IFD must always start at a two-byte-aligned offset. Its value does not affect the meaning of the TIFF.

Did you write this image using libtiff? It would be best if libtiff would always write bytes like this with a zero value, so I would consider this a (minor) bug. (Never write data from uninitialized buffers, to prevent data leakage and security/privacy issues and all that stuff.)

Gerben Vos.