TIFF Validation Output

TIFF Validation provides the following results
  • XML with TIFF validation results for the given TIFF data
  • A flag indicating if the TIFF validation results contain any failures
  • A character representing the image TIFF variance indicator according to ANS X9.100-181 Annex A for the given TIFF data
  • An image test summary (ANS type 55) record
  • A collection of image test detail (ANS type 56) records with TIFF validation results
  • Messages detailing unusual conditions encountered validating the TIFF data
The XML with TIFF Validation results has the following general form:
<?xml version="1.0"?>
<tiffResults>
   <testOutput type="image">
      <test tiffHeaderRequired="Y/N" suspect="Y/N">
         <actual>present/missing</actual>
         <score>success/warning/failure</score>
      </test>
      <test byteOrder="little/big" suspect="Y/N">
         <actual>little/big</actual>
         <score>success/warning/failure</score>
      </test>
      <test IFD="valid" suspect="Y/N">
         <actual>valid/outOfBound/missing</actual>
         <score>success/warning/failure</score>
      </test>
      <test tagOrder="ascending" suspect="Y/N">
         <actual>t1 t2 t3 .../missing</actual>
         <score>success/warning/failure</score>
      </test>
      <test page="single" suspect="Y/N">
         <actual>single/multiple/missing</actual>
         <score>success/warning/failure</score>
      </test>
      <test pointers="valid" suspect="Y/N">
         <actual>valid/duplicate/outOfBound</actual>
         <score>success/warning/failure</score>
      </test>
      <test decompress="G4Only" suspect="Y/N">
         <actual>valid/missing/corrupt</actual>
         <score>success/warning/failure</score>
      </test>
      <test decompressLength="G4Only" suspect="Y/N">
         <actual>n/outOfBound/missing/corrupt</actual>
         <score>success/warning/failure</score>
      </test>
      <test EOFB="G4Only" suspect="Y/N">
         <actual>present/missing</actual>
         <score>success/warning/failure</score>
      </test>
      <test extraPadLimit="G4Only" suspect="Y/N">
         <testValues>numBytes</testValues>
         <actual>n/missing</actual>
         <score>success/warning/failure</score>
      </test>
   </testOutput>
   <testOutput type="tag" number="n" name="FieldName">
      <test mandatory="Y" suspect="Y/N">
         <actual>present/missing</actual>
         <score>success/warning/failure</score>
      </test>
      <test field="type/count" suspect="Y/N">
         <testValues>v1 v2 v3 ...</testValues>
         <actual>n</actual>
         <score>success/warning/failure</score>
      </test>
      <test operator="EQ/NEQ" suspect="Y/N">
         <testValues>v1 v2 v3 ...</testValues>
         <actual>n/outOfBound</actual>
         <score>success/warning/failure</score>
      </test>
      <test operator="EQ/NEQ" tagNumber="n" suspect="Y/N">
         <actual>n/outOfBound/missing</actual>
         <score>success/warning/failure</score>
      </test>
      [more <test> elements]
   </testOutput>
   [more <testOutput> elements]
</tiffResults>

TIFF Validation groups the output just as the rules were grouped in the rules file. The output keywords include most of the keywords from Rules File Keywords. In addition, some new keywords appear, which are shown in Table 1.

Table 1. Output Only Keywords
Keyword Value Description
tiffResults   Root element of the TIFF Validation results XML
testOutput   Contains the results from the group of tests TIFF Validation performed
type image, tag Indicates if the group contains image or tag test results
testValues v1 v2 v3 For tests with values, this is the list of numbers specified in the rules file
actual   Contains the value TIFF Validation found for the test
present The TIFF data begins with a TIFF header, the Group 4 compressed image has an end of facsimile block (EOFB), or the TIFF data has the field
missing A TIFF header, IFD, EOFB, or TIFF field is absent from the TIFF data
little The TIFF header indicates little endian data
big The TIFF header indicates big endian data
valid The first IFD structure or TIFF pointers are valid
outOfBound The first IFD or its referenced data lies outside the TIFF data
t1 t2 t3 The tag numbers, in the order encountered, in the first IFD
single The TIFF data contains a single IFD
multiple The TIFF data contains more than one IFD
duplicate The first IFD contains TIFF pointers with overlapping ranges
n This is the number of extra pad bytes (can be zero to 16), the field type, the field count, or the first field value in the TIFF data
corrupt A problem was detected when decompressing the image
score success A passing test result
warning A failing test result with suspect off
failure A failing test result with suspect on