AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2004.06.09 14:41 "[Tiff] TIFF validation", by Loygorri, Fernando
2004.06.09 16:15 "Re: [Tiff] TIFF validation", by Joris
2004.06.10 18:52 "[Tiff] Virus warning??", by Joris
2004.06.14 14:57 "[Tiff] Quality of service", by Joris
2004.06.14 15:18 "Re: [Tiff] Quality of service", by Frank Warmerdam
2004.06.14 15:28 "Re: [Tiff] Quality of service", by Joris
2004.06.14 17:52 "Re: [Tiff] Quality of service", by Chris Cox
2004.06.22 22:36 "[Tiff] Test?", by Joris
2004.06.09 17:21 "Re: [Tiff] TIFF validation", by Gerben Vos

2004.06.09 14:41 "[Tiff] TIFF validation", by Loygorri, Fernando

I have some questions regarding validation of TIFF files.

Page 21 of the 6.0 specification indicates that the type of the ImageWidth field is "SHORT or LONG". To me, this seems to indicate that if I'm validating a TIFF file and I find that the ImageWidth field is of type BYTE I must flag the file as not valid.

On the other hand, page 16 of the same document says: "TIFF readers should accept BYTE, SHORT, or LONG values for any unsigned integer field." To me, this seems to indicate that in the example above I must consider the file valid.

But, then, why does the document explicitly exclude BYTE as a legal option in the definition of the ImageWidth field (and many others)?

I'm aware that "should" implies a recommendation (page 12); does this mean that the note on page 16 has no bearing on the validity of a TIFF file and it just exhorts writers of viewing software to try to do the best they can when faced with a malformed TIFF file?

Comments?

--

FGL