TIFF correction rule operations

When a TIFF image is corrected, a list of the corrections that were made to the image is placed in its TIFF image description tag (TIFF tag 270). The list consists of one or more of the correction operation values that are shown in the following table. If more than one correction was made to the image, the correction operation values are separated by spaces. For example, if TIFF correction sorted the TIFF tags in ascending order and also removed any additional image file directories, the TIFF image description tag is: TAG_ORDER SINGLE_PAGE.

The following table describes the TIFF correction operations that Image Compliance does.
Table 1. TIFF correction rule operations
Name Parameters Correction operation values for the image description tag Description TIFF rule test operations
Convert Multistrip This operation does not support parameters. MULTI_STRIP Convert a multiple strip image into a single strip image.
  • Mandatory
  • Not Equal (Value)
  • IFD Entry Field Type
  • Equal (Tag Ref)
Sort Tags Ascending This operation does not support parameters. TAG_ORDER Sort the TIFF tags in ascending order.
  • Tag Order Ascending
Strip Additional IFDs This operation does not support parameters. SINGLE_PAGE Remove additional image file directories (IFD) if they are present.
  • Single Page
Convert Tags to Little Endian This operation does not support parameters. ENDIAN Convert all the TIFF tags to little endian format.
  • Byte Order-Little
Strip Subfiletype Tag #255 This operation does not support parameters. DEPR_SUBF Remove the deprecated SubfileType tag (TIFF tag 255) and the PageNumber tag (TIFF tag 297) from the image.  
Resolution Unit Tag to Inches This operation does not support parameters. XY_RES_UNIT Change the ResolutionUnit tag to be inches when the X and Y resolution tags have standard values of 200 or 240.
  • Mandatory
  • Equal (Value)
  • IFD Entry Field Type
Resolution Tag Values Specify the acceptable resolution values for the corrected image. If more than one resolution value is acceptable, use spaces to separate the values. For example, 200 240. XY_RES Correct the values of the X and Y resolution tags.

Images with X and Y resolution tag values that are not 200 or 240 are corrected. The correct resolution is determined by running the Image Compliance image quality analysis tests for each of the resolution values that are specified in the parameters. The tags are set to the resolution that produces the best image quality analysis score.

  • Mandatory
  • Equal (Value)
  • IFD Entry Field Type
Reverse Image Fill Order This operation does not support parameters. FILL_ORD_REVERSED When the FillOrder tag is two, reverse the fill order of the image and change the value of the FillOrder tag to one.
  • Equal (Value)
  • IFD Entry Field Type
Change Tag Value #266 to 1 This operation does not support parameters. FILL_ORD_TAG_VAL Change the value of the FillOrder tag to one. The image is not changed.
  • Equal (Value)
  • IFD Entry Field Type
Change Tag #254 Type to long This operation does not support parameters. NEW_SUBF_BAD_TYPE Change the type of the NewSubfileType tag to long.
  • Equal (Value)
  • IFD Entry Field Type
Reset bit 0 NewSubfileType Tag This operation does not support parameters. NEW_SUBF_LOW_RES Reset the bit in the NewSubfileType tag that indicates this image is a reduced resolution version of another image in the TIFF file.
  • Equal (Value)
  • IFD Entry Field Type
Reset bit 1 NewSubfileType Tag This operation does not support parameters. NEW_SUBF_MULTIPAGE Reset the bit in the NewSubfileType tag that indicates this image is a single page of a multiple page image.
  • Equal (Value)
  • IFD Entry Field Type
Reset bit 2 NewSubfileType Tag This operation does not support parameters. NEW_SUBF_TRANSPARENCY Reset the bit in the NewSubfileType tag that indicates this image defines a transparency mask for another image in the TIFF file.
  • Equal (Value)
  • IFD Entry Field Type
Change Tag #279 Type Based on Size This operation does not support parameters. STRIP_BYTE_COUNTS_TYPE Based on the actual length of the image, correct the type for the StripByteCounts tag.
  • Mandatory
  • IFD Entry Field Type
  • IFD Entry Field Count
Add Missing EOFB This operation does not support parameters. EOFB_MISSING Add any end of facsimile blocks (EOFB) that are missing.
  • EOFB G4 Only
  • Extra Pad G4 Only
Fix Tag #278 rows per strip value This operation does not support parameters. ROWS_PER_STRIP For single strip images, set the RowsPerStrip tag to the value that is in the ImageLength tag.
  • Not Equal (Value)
Fix Tag #266 fill order tag type to SHORT This operation does not support parameters. FILL_ORDER_TAG_TYPE Change the type of the FillOrder tag to short.
  • Not Equal (Value)
Set Photometric Interpretation to 0 Specify a percentage from 0 - 100. PHMETRIC The photometric interpretation TIFF tag (tag 262) value is corrected and the image is inverted when the following conditions are met.
  • The image is black-and-white.
  • The photometric interpretation tag is set to black-is-zero (a value of 1).
  • The count of the 1 bits divided by the total count of image data bits is equal to or greater than the percentage value in the correction parameter.
If the percentage of the 1 bits is less than the configured percentage value, only the photometric interpretation tag value is corrected to a value of white-is-zero (0).
N/A
Transcode to G4 Compression This operation does not support parameters. TRANSCODE_TO_G4 The image is decompressed and recompressed by using the CCITT Group 4 G4 (4) compression algorithm when the following conditions are met.
  • The compression algorithm TIFF tag (tag 259) is set to Packbits (32773), Uncompressed (1), or LZW (5).
  • The image is black-and-white.
  • Not Equal (Value)
Orient TopLeft This operation has the following parameter values.
  • Specify 0 to fix the tag and reorient the underlying pixels.
  • Specify 1 to fix only the tag.
  • When the correction parameter is 0, the value that is used is REORIENT_TOPLEFT.
  • When the correction parameter is 1, the value that is used is ORIENT_TAG_VALUE_TOP_LEFT
When the following conditions are met, the image is decompressed, reoriented, and recompressed in the TopLeft orientation (a value of 1).
  • The orientation TIFF tag (tag 274) is set to any value that does not indicate that the orientation is top left. That is, values 2-8.
  • The image is black-and-white.
  • The correction parameter is 0.
If the correction parameter is 1, only the value of the tag is changed.
  • Equal Value
Photometric Int. value type ASCII This operation does not support parameters. PHOTOMETRIC_TAG_TYPE When the photometric interpretation TIFF tag (tag 262) has a type of ASCII (2), the value is tested to determine whether it is represented as ASCII text. ASCII values consist of bytes with values in the range 0x30 - 0x39.

If the value is ASCII, it is converted to a binary value and the tag type is set to short (3). If the value is not ASCII, just the type is set to short.

  • Not Equal (Value)
Orientation value type ASCII This operation does not support parameters. ORIENTATION_TYPE When the orientation TIFF tag (tag 274) has a type of ASCII (2), the value is tested to determine whether it is represented as ASCII text. ASCII values consist of bytes with values in the range 0x30 - 0x39.

If the value is ASCII, it is converted to a binary value and the tag type is set to short (3). If the value is not ASCII, just the type is set to short.

  • Not Equal (Value)
Resolution Unit value type ASCII This operation does not support parameters. XY_RES_UNIT_TYPE When the resolution unit TIFF tag (tag 296) has a type of ASCII (2), the value is tested to determine whether it is represented as ASCII text. ASCII values consist of bytes with values in the range 0x30 - 0x39.

If the value is ASCII, it is converted to a binary value and the tag type is set to short (3). If the value is not ASCII, just the type is set to short.

  • Not Equal (Value)