All Downloads are FREE. Search and download functionalities are using the official Maven repository.

implementationcheckers.TIAProfileChecker.xml Maven / Gradle / Ivy

There is a newer version: 1.2.8
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<implementationCheckerObject xmlns="http://www.dpfmanager.org/ProfileChecker"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.dpfmanager.org/ProfileChecker ProfileChecker.xsd">

    <title>TI/A Draft</title>
    <iso>TI/A Draft v0.1</iso>
    <description>TI/A v0.1 Draft - October 18, 2016</description>
    <version>1.0.0</version>
    <author>Easy Innova</author>
    <date>2016-10-24</date>

    <include>
        <policyChecker>TIFF_Baseline_Core_6_0.xml</policyChecker>
    </include>

    <rules id="MASTER">
        <title>Rules to validate IFD Master Image</title>
        <description>The following rules validate a valid ifd storing a master image according to TI/A specifications</description>
        <rule id="MASTER-0001" context="ifd[thumbnail=0]" level="error">
            <title>Square aspect ration</title>
            <description>In TI/A the only valid pixel aspect ratio is 1:1 (square), so that XResolution equals YResolution</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=XResolution] == tags.tag[name=YResolution]}">In TI/A the only valid pixel aspect ratio is 1:1 (square)</assert>
        </rule>
        <rule id="MASTER-0002" context="ifd[thumbnail=0]" level="error">
            <title>Strip data Structure</title>
            <description>The image data is stored using strips, which are collectively termed segments.
                The following tag-fields define the number of strips and the number of rows of image data stored in each strip: StripOffsets, RowsPerStrip, and StripByteCounts.
                The image shall be divided into an integral number of strips, from 1 strip to the maximum number of strips, which equals the image’s length.
                If necessary, the final strip can be "padded" with zeros. </description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{strips == 1}">In TI/A the only data structure supported are strips</assert>
        </rule>
        <rule id="MASTER-0003" context="ifd[class=image]" level="warning" experimental="true">
            <title>64 Kbytes per strip</title>
            <description>It is recommended that the image data, prior to compression, not exceed 64 Kbytes per strip.
                This value is chosen to maximize compatibility with various operating systems.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=Compression] != 0} || {StripsSize &gt; 65536}">It is recommended that the image data, prior to compression, not exceed 64 Kbytes per strip.</assert>
        </rule>
        <rule id="MASTER-0004" context="ifd[thumbnail=0]" level="error">
            <title>NewSubFileType defined</title>
            <description>New NewSubFileType tag must be explicit defined in an Image File Directory storing a master image.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=NewSubfileType]}">New NewSubFileType tag must be explicitly defined in an Image File Directory storing a master image.</assert>
        </rule>
        <rule id="MASTER-0005" context="ifd[thumbnail=0]" level="error">
            <title>Valid NewSubFileType</title>
            <description>NewSubFileType tag must define a full resolution image in an Image File Directory storing a master image.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=NewSubfileType] % 2 == 0}">NewSubFileType invalid value for a master image, the value should define a full resolution image.</assert>
        </rule>
        <rule id="MASTER-0006" context="ifd[thumbnail=0]" level="error">
            <title>valid NewSubFileType</title>
            <description>TI/A standard TIFF defines a unique valid value for NewSubFileType, the value should be 0 for a full resolution image.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=NewSubfileType] == 0}"> NewSubFileType invalid values, the value should be 0 for a full resolution image</assert>
        </rule>
        <rule id="MASTER-0007" context="ifd[thumbnail=0]" level="error">
            <title>SubIFD not permitted</title>
            <description>TI/A do not permit the use of SubIFDs in a master image.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{count(tags.tag[name=SubIFDs]) == 0}">TI/A do not permit the use of SubIFDs in a master image</assert>
        </rule>
       
        <rule id="MASTER-0009" context="ifd[thumbnail=0]" level="error">
            <title>Master image with a subIFD thumbnail</title>
            <description>Although TI/A do not recommend the use of thumbnails, when a thumbnails is defined it must contain a subIFD containing the main image.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=SubIFDs].ifd.tags.tag[name=NewSubfileType] % 2 == 0}">Invalid IFD structure,The Master image define a subIFD containing a thumbnail</assert>
        </rule>

        <rule id="MASTER-0010" context="ifd[thumbnail=0]" level="warning">
            <title>Master image recommended compression</title>
            <description>TI/A do not recommend the use of compression for storing a master images, An uncompressed image is always the best option for archival purpose</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=Compression]!=1}">TI/A do not recommend the use of compression for storing a master images, an uncompressed image is preferred for archival purpose</assert>
        </rule>
        <rule id="MASTER-0011" context="ifd[thumbnail=0]" level="error">
            <title>CCITT 1D compression</title>
            <description>CCITT 1D compression is not widely used for archival purpose, therefore obsolete</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=Compression]!=2}">CCITT 1D Compression is forbidden regarding the TI/A the specification</assert>
        </rule>
        <rule id="MASTER-0012" context="ifd[thumbnail=0]" level="error">
            <title>Group 3 Fax compression</title>
            <description>Group 3 Fax compression is not widely used for archival purpose, therefore obsolete</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=Compression]!=3}">Group 3 Fax Compression is forbidden regarding the TI/A the specification</assert>
        </rule>
        <rule id="MASTER-0013" context="ifd[thumbnail=0]" level="warning">
            <title>Group 4 Fax compression</title>
            <description>Although Group 4 Fax compression is supported in TI/A, is not recommended</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=Compression]==4}">Group 4 Fax compression is supported in TI/A but not recommended</assert>
        </rule>
        <rule id="MASTER-0014" context="ifd[thumbnail=0]" level="warning">
            <title>LZW compression</title>
            <description>LZW compression is supported in TI/A specifications but not recommended</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=Compression]==5}">LZW compression is supported in TI/A but not recommended</assert>
        </rule>
        <rule id="MASTER-0015" context="ifd[thumbnail=0]" level="error">
            <title>Main image JPEG TIFF/6-.0 compression</title>
            <description>JPEG 'old' compression is replaced by 'new JPEG' and not widely used for archival purpose, therefore obsoleted</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=Compression]!=6}">JPEG TIFF/6-.0 'old JPEG' Compression is forbidden regarding the TI/A the specification</assert>
        </rule>
        <rule id="MASTER-0016" context="ifd[thumbnail=0]" level="warning">
            <title>Main image JPEG TIFF TechNote2 compression</title>
            <description>JPEG TIFF TechNote2 compression 'new JPEG' is not widely used for archival purpose, therefore obsoleted</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=Compression]==7}">TI/A recomend the uncompressed image</assert>
        </rule>
        <rule id="MASTER-0017" context="ifd[thumbnail=0]" level="warning">
            <title>Adobe Deflate compression</title>
            <description>Adobe Deflate compression is supported in TI/A specifications but not recommended</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=Compression]==8}">Adobe Deflate compression is supported in TI/A specifications but not recommended</assert>
        </rule>
        <rule id="MASTER-0018" context="ifd[thumbnail=0]" level="warning">
            <title>JBIG bw compression</title>
            <description>JBIG bw compression is supported in TI/A specifications but not recommended</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=Compression]==9}">BIG bw compression is supported in TI/A specifications but not recommended</assert>
        </rule>
        <rule id="MASTER-0019" context="ifd[thumbnail=0]" level="warning">
            <title>JBIG color compression</title>
            <description>JBIG color compression is supported in TI/A specifications but not recommended</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=Compression]==10}">JBIG color compression is supported in TI/A specifications but not recommended</assert>
        </rule>
        <rule id="MASTER-0020" context="ifd[thumbnail=0]" level="error">
            <title>Vendor Unique compressions</title>
            <description>Vendor Unique compressions (&gt; 32766) are not widely used, therefore obsolete</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=Compression] &lt; 32766}">Vendor Unique compressions (&gt; 32766) are not widely used, therefore obsolete</assert>
        </rule>

        <rule id="MASTER-0022" context="ifd[thumbnail=0]" level="warning">
            <title>Recommended PhotometricInterpretation</title>
            <description>TI/A Standard only recommend the use of RGB, Grayscale(BlackIsZero) and Bilevel(BlackIsZero) images.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=PhotometricInterpretation] != 1} &amp;&amp; {tags.tag[name=PhotometricInterpretation] != 2}">TI/A Standard only recommend the use of RGB, Grayscale(BlackIsZero) and Bilevel(BlackIsZero) images</assert>
        </rule>
        <rule id="MASTER-0023" context="ifd[thumbnail=0]" level="warning">
            <title>Palette color images</title>
            <description>Palette color images are supported in TI/A specifications but not recommended.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=PhotometricInterpretation] == 3}">Palette color images are supported in TI/A specifications but not recommended</assert>
        </rule>
        <rule id="MASTER-0024" context="ifd[thumbnail=0]" level="warning">
            <title>Transparency Mask</title>
            <description>Transparency Mask images are supported in TI/A specifications but not recommended.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=PhotometricInterpretation] == 4}">Transparency Mask images are supported in TI/A specifications but not recommended</assert>
        </rule>
        <rule id="MASTER-0025" context="ifd[thumbnail=0]" level="warning">
            <title>CMYKk images</title>
            <description>CMYKk images are supported in TI/A specifications but not recommended</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=PhotometricInterpretation] == 5}">CMYKk images are supported in TI/A specifications but not recommended</assert>
        </rule>
        <rule id="MASTER-0026" context="ifd[thumbnail=0]" level="error">
            <title>YCbCr images</title>
            <description>YCbCr color space. Y refers to the luminance component, Cb and Cr refer to the two chrominance components. The component order shall be Y, Cb, Cr.
                CMYKk images are forbidden in TI/A specifications.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=PhotometricInterpretation] != 6}">CMYKk images are forbidden in TI/A specifications</assert>
        </rule>
        <rule id="MASTER-0027" context="ifd[thumbnail=0]" level="error">
            <title>CFA images</title>
            <description>CFA images are forbidden in TI/A specifications</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=PhotometricInterpretation] != 32803}">CFA images are forbidden in TI/A specifications</assert>
        </rule>
        <rule id="MASTER-0028" context="ifd[thumbnail=0]" level="error">
            <title>Vendor Unique PhotometricInterpretation</title>
            <description>Vendor Unique PhotometricInterpretation are not required to be interpreted by others. Their values need to be obtained from Adobe Corporation.
            Vendor Unique PhotometricInterpretation (&gt;32767) are forbidden in TI/A specifications.
            </description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.2: Image data</section>
                <page>12</page>
            </reference>
            <assert test="{tags.tag[name=PhotometricInterpretation] &lt; 32767}"> Vendor Unique PhotometricInterpretation (&gt;32767) are forbidden in TI/A specifications.</assert>
        </rule>
    </rules>

    <rules id="THUMBNAIL">
        <title>Rules to validate IFD Thumbnail</title>
        <description>This rules section validate a valid thumbnail followin the TI/A specifications</description>

        <rule id="THUMBNAIL-0001" context="ifd[thumbnail=1]" level="error">
            <title>Thumbnail square aspect ration</title>
            <description>In TI/A the only valid pixel aspect ratio is 1:1 (square), so that XResolution equals YResolution</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.3: Thumbnail images</section>
                <page>14</page>
            </reference>
            <assert test="{tags.tag[name=XResolution] == tags.tag[name=YResolution]}">In TI/A the only valid pixel aspect ratio is 1:1 (square)</assert>
        </rule>
        <rule id="THUMBNAIL-0002" context="ifd[thumbnail=1]" level="error">
            <title>Thumbnail strip data Structure</title>
            <description>TI/A requires that the thumbnail image be stored in strips, so that the thumbnails may be read by any baseline TIFF 6.0 reader.  </description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.3: Thumbnail images</section>
                <page>14</page>
            </reference>
            <assert test="{strips == 1}">In TI/A the only data structure supported are strips</assert>
        </rule>
        <rule id="THUMBNAIL-0003" context="ifd[thumbnail=1]" level="warning" experimental="true">
            <title>Thumbnail 64 Kbytes per strip</title>
            <description>It is recommended that the image data, prior to compression, not exceed 64 Kbytes per strip.
                This value is chosen to maximize compatibility with various operating systems.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.3: Thumbnail images</section>
                <page>14</page>
            </reference>
            <assert test="{tags.tag[name=Compression] != 0} || {stripsSize &gt; 65536}">It is recommended that the image data, prior to compression, not exceed 64 Kbytes per strip.</assert>
        </rule>
        <rule id="THUMBNAIL-0004" context="ifd[thumbnail=1]" level="error" experimental="true">
            <title>Thumbnail No compression</title>
            <description>It is recommended that the image data, prior to compression, not exceed 64 Kbytes per strip.
                This value is chosen to maximize compatibility with various operating systems.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.3: Thumbnail images</section>
                <page>14</page>
            </reference>
            <assert test="{tags.tag[name=Compression] == 0}">It is recommended that the image data, prior to compression, not exceed 64 Kbytes per strip.</assert>
        </rule>
        <rule id="THUMBNAIL-0005" context="ifd[thumbnail=1]" level="error">
            <title>Thumbnail NewSubFileType defined</title>
            <description>NewSubFileType must be defined for TI/A standard TIFF Thumbnail.</description>
             <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.3: Thumbnail images</section>
                <page>14</page>
            </reference>
            <assert test="{tags.tag[name=NewSubfileType]}">NewSubFileType must be defined for TI/A standard TIFF Thumbnail.</assert>
        </rule>
        <rule id="THUMBNAIL-0006" context="ifd[thumbnail=1]" level="error">
            <title>Thumbnail valid NewSubFileType</title>
            <description>NewSubFileType must be propertly defined for TI/A standard TIFF Thumbnail.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.3: Thumbnail images</section>
                <page>14</page>
            </reference>
            <assert test="{tags.tag[name=NewSubfileType] % 2 == 1}">Thumbnail NewSubFileType must define a thumbnail image</assert>
        </rule>
        <rule id="THUMBNAIL-0007" context="ifd[thumbnail=1]" level="warning">
            <title>Thumbnail valid NewSubFileType</title>
            <description>NewSubFileType must be propertly defined for TI/A standard TIFF Thumbnail.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.3: Thumbnail images</section>
                <page>14</page>
            </reference>
            <assert test="{tags.tag[name=NewSubfileType] != 1}">TI/A standard only permit NewSubFileType value 1 for thumbnail image</assert>
        </rule>
        <rule id="THUMBNAIL-0008" context="ifd[thumbnail=1]" level="error">
            <title>Thumbnail ImageWidth</title>
            <description>The dimensions of the thumbnail image are restricted by TI/A to 256 pixels maximum horizontally and 256 pixels maximum vertically as defined in TIFF/EP.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.3: Thumbnail images</section>
                <page>14</page>
            </reference>
            <assert test="{tags.tag[name=ImageWidth] &lt; 256}">The dimensions of the thumbnail image are restricted by TI/A to 256 pixels maximum.</assert>
        </rule>
        <rule id="THUMBNAIL-0009" context="ifd[thumbnail=1]" level="error">
            <title>Thumbnail ImageLength</title>
            <description>The dimensions of the thumbnail image are restricted by TI/A to 256 pixels maximum horizontally and 256 pixels maximum vertically as defined in TIFF/EP.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.3: Thumbnail images</section>
                <page>14</page>
            </reference>
            <assert test="{tags.tag[name=ImageLength] &lt; 256}">The dimensions of the thumbnail image are restricted by TI/A to 256 pixels.</assert>
        </rule>
        <rule id="THUMBNAIL-0010" context="ifd[thumbnail=1]" level="error">
            <title>Thumbnail requires SubIFD tag</title>
            <description>Although TI/A do not recommend the use of thumbnails, when a thumbnails is defined it must contain a subIFD containing the main image.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.3: Thumbnail images</section>
                <page>14</page>
            </reference>
            <assert test="{count(tags.tag[name=SubIFDs]) == 1}">a thumbnail must contain a Sub-ifd containg the main image</assert>
        </rule>
        <rule id="THUMBNAIL-0011" context="ifd[thumbnail=1]" level="error">
            <title>Thumbnail dimension lower than main image</title>
            <description>The resolution X of the sub image (full resolution) must be greater than the thumbnail image</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.3: Thumbnail images</section>
                <page>14</page>
            </reference>
            <assert test="{tags.tag[name=SubIFDs].ifd.tags.tag[name=ImageLength] > tags.tag[name=ImageLength]}">Sub-ifd width must be greater than thumbnail IFD</assert>
        </rule>
        <rule id="THUMBNAIL-0012" context="ifd[thumbnail=1]" level="error">
            <title>Thumbnail dimension lower than main image</title>
            <description>The resolution Y of the sub image (full resolution) must be greater than the main (thumbnail) image</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.3: Thumbnail images</section>
                <page>14</page>
            </reference>
            <assert test="{tags.tag[name=SubIFDs].ifd.tags.tag[name=ImageWidth] > tags.tag[name=ImageWidth]}">Sub-ifd height must be greater than thumbnail IFD</assert>
        </rule>
        <rule id="THUMBNAIL-0013" context="ifd[thumbnail=1]" level="error">
            <title>Thumbnail subIFD contains a full resolution image</title>
            <description>TI/A Thumbnail must define a subIFD containing a full resolution image</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 4.3: Thumbnail images</section>
                <page>14</page>
            </reference>
            <assert test="{tags.tag[name=SubIFDs].ifd.tags.tag[name=NewSubfileType] % 2 == 0}">TI/A Thumbnail must define a subIFD containing a full resolution image</assert>
        </rule>
        
    </rules>

    <rules id="MANDATORY-TAG">
        <title>Mandatory tags for TI/A</title>
        <description>This section describes the list of mandatory tags in TI/A Draft</description>

        <rule id="MANDATORY-TAG-254-0001" context="ifd[class=image]" level="error">
            <title>NewSubFileType mandatory tag</title>
            <description>This tag indicates whether the given IFD is a thumbnail or main (full-size) image. 
                This tag is mandatory and there is no default value. The value shall be explicitly stated.
                If the current image is the main image, rather than the 'thumbnail' image, a value of 0 shall be encoded in this field</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1 Tag List</section>
                <page>16</page>
            </reference>
            <assert test="{tags.tag[name=NewSubfileType]}">NewSubFileType is mandatory regarding the TI/A specifications</assert>
        </rule>

        <rule id="MANDATORY-TAG-254-0002" context="ifd[class=image]" level="error">
            <title>NewSubFileType valid values</title>
            <description>This tag indicates whether the given IFD is a thumbnail or main (full-size) image. 
                This tag is mandatory and there is no default value. The value shall be explicitly stated.
                If the current image is the main image, rather than the 'thumbnail' image, a value of 0 shall be encoded in this field</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1 Tag List</section>
                <page>16</page>
            </reference>
            <assert test="{tags.tag[name=NewSubfileType] == 0} || {tags.tag[name=NewSubfileType] == 1}">The only valid values for NewSubFileType are 0 (full resolution image) or 1 (Thumbnail)</assert>
        </rule>

        <rule id="MANDATORY-TAG-256" context="ifd[class=image]" level="error">
            <title>Imagewidth mandatory tag</title>
            <description>This tag encodes the number of columns in the image, i.e. the number of pixels per line. This tag is mandatory and there is no default value. 
                The image width may be the shorter or longer dimension of the image, depending upon the orientation of the camera during image capture</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1 Tag List</section>
                <page>16</page>
            </reference>
            <assert test="{tags.tag[name=ImageWidth]}">Imagewidth is mandatory regarding the TI/A specifications</assert>
        </rule>

        <rule id="MANDATORY-TAG-257" context="ifd[class=image]" level="error">
            <title>ImageLength mandatory tag</title>
            <description>This tag encodes the number of rows in the image, i.e. the number of lines in the image. This tag is mandatory and there is no default value. 
                The image length may be the shorter or longer dimension of the image, depending upon the orientation of the camera during image capture</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1 Tag List</section>
                <page>16</page>
            </reference>
            <assert test="{tags.tag[name=ImageLength]}">ImageLength is mandatory regarding the TI/A specifications</assert>
        </rule>

        <rule id="MANDATORY-TAG-258" context="ifd[class=image]" level="error">
            <title>BitsPerSample mandatory tag</title>
            <description>This tag encodes the number of bits per component for each pixel. This tag is mandatory and there is no default value. 
                This tag provides N values depending upon SamplesPerPixel present.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1 Tag List</section>
                <page>16</page>
            </reference>
            <assert test="{tags.tag[name=BitsPerSample]}">BitsPerSample is mandatory regarding the TI/A specifications</assert>
        </rule>

        <rule id="MANDATORY-TAG-259" context="ifd[class=image]" level="error">
            <title>Compression mandatory tag</title>
            <description>This tag encodes the compression scheme used to store the image data. This tag is mandatory and there is no default value. The tag value shall equal "1" for the thumbnail IFD. In the Context of TI/A the default value is 1. 
                For sustainability compression may not be used.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1 Tag List</section>
                <page>16</page>
            </reference>
            <assert test="{tags.tag[name=Compression]}">Compression is mandatory regarding the TI/A specifications</assert>
        </rule>

        <rule id="MANDATORY-TAG-262" context="ifd[class=image]" level="error">
            <title>PhotometricInterpretation mandatory tag</title>
            <description>In TIFF/EP, this tag defines the color space of the image data components, and the order of the components. This tag is mandatory and there is no default value. 
                The value shall be 1, 2, or 6 for the thumbnail IFD. Accepted values are 1 (grayscale) and 2 (rgb full color).</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1 Tag List</section>
                <page>16</page>
            </reference>
            <assert test="{tags.tag[name=PhotometricInterpretation]}">PhotometricInterpretation is mandatory regarding the TI/A specifications</assert>
        </rule>

        <rule id="MANDATORY-TAG-273" context="ifd[class=image]" level="error">
            <title>StripOffsets mandatory tag</title>
            <description>This tag encodes the byte offset(s) with respect to the beginning of the file to each strip of the image data. This mandatory tag-field is the only way for a reader to find the image data. 
                TIFF baseline plus TI/A requires that the size of the image data contained in each strip, prior to compression, not exceed 64 KBytes.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1 Tag List</section>
                <page>16</page>
            </reference>
            <assert test="{tags.tag[name=StripOffsets]}">StripOffsets is mandatory regarding the TI/A specifications</assert>
        </rule>

        <rule id="MANDATORY-TAG-274-0002" context="ifd[class=image]" level="error">
            <title>Orientation valid values</title>
            <description>This tag encodes the orientation of the camera relative to the scene, when the image was captured. Only the value 1 is allowed.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1 Tag List</section>
                <page>16</page>
            </reference>
            <assert test="{tags.tag[name=Orientation] == 1} || {tags.tag[name=Orientation] == 3} || {tags.tag[name=Orientation] == 6} || {tags.tag[name=Orientation] == 8} || {tags.tag[name=Orientation] == 9}">Orientation valid values regarding the TI/A specifications are 1,3,6,8 or 9</assert>
        </rule>

        <rule id="MANDATORY-TAG-277-0001" context="ifd[class=image]" level="error">
            <title>SamplesPerPixel mandatory tag</title>
            <description>This tag encodes the number of components or samples stored for each pixel in the image. This tag is mandatory and there is no default value. 
                The value shall be explicitly stated.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1 Tag List</section>
                <page>16</page>
            </reference>
            <assert test="{tags.tag[name=SamplesPerPixel]}">SamplesPerPixel is mandatory regarding the TI/A specifications</assert>
        </rule>

        <rule id="MANDATORY-TAG-277-0002" context="ifd[class=image]" level="error">
            <title>SamplesPerPixel valid for Bilevel</title>
            <description>This tag encodes the number of components or samples stored for each pixel in the image. This tag is mandatory and there is no default value. 
                The value shall be explicitly stated.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1 Tag List</section>
                <page>16</page>
            </reference>
            <assert test="{type != 'Bilevel'} || {tags.tag[name=SamplesPerPixel] == 1}">SamplesPerPixel shall be 1 for Bilevel images</assert>
        </rule>

        <rule id="MANDATORY-TAG-277-0003" context="ifd[class=image]" level="error">
            <title>SamplesPerPixel valid for Grayscale</title>
            <description>This tag encodes the number of components or samples stored for each pixel in the image. This tag is mandatory and there is no default value. 
            The value shall be explicitly stated.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1 Tag List</section>
                <page>16</page>
            </reference>
            <assert test="{type != 'Grayscale'} || {tags.tag[name=SamplesPerPixel] == 1}">SamplesPerPixel shall be 1 for Grayscale images</assert>
        </rule>

        <rule id="MANDATORY-TAG-277-0004" context="ifd[class=image]" level="error">
            <title>SamplesPerPixel valid for RGB</title>
            <description>This tag encodes the number of components or samples stored for each pixel in the image. This tag is mandatory and there is no default value. 
            The value shall be explicitly stated.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1 Tag List</section>
                <page>16</page>
            </reference>
            <assert test="{type != 'RGB'} || {tags.tag[name=SamplesPerPixel] == 3}">SamplesPerPixel shall be 3 for RGB images</assert>
        </rule>

        <rule id="MANDATORY-TAG-278" context="ifd[class=image]" level="error">
            <title>RowsPerStrip mandatory tag</title>
            <description>This tag encodes the number of rows per strip within the image. This tag is mandatory.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1 Tag List</section>
                <page>16</page>
            </reference>
            <assert test="{tags.tag[name=RowsPerStrip]}">RowsPerStrip is mandatory regarding the TI/A specifications</assert>
        </rule>

        <rule id="MANDATORY-TAG-279" context="ifd[class=image]" level="error">
            <title>StripByteCounts mandatory tag</title>
            <description>This tag encodes the number of bytes present in each strip after compression has been applied. This tag is mandatory.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1 Tag List</section>
                <page>16</page>
            </reference>
            <assert test="{tags.tag[name=StripBYTECount]}">StripBYTECount is mandatory regarding the TI/A specifications</assert>
        </rule>

        <rule id="MANDATORY-TAG-284" context="ifd[class=image]" level="error">
            <title>PlanarConfiguration mandatory tag</title>
            <description>This tag describes how the components (samples) of each pixel are stored. This tag is mandatory and there is no default value.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1 Tag List</section>
                <page>16</page>
            </reference>
            <assert test="{tags.tag[name=PlanarConfiguration]}">PlanarConfiguration is mandatory regarding the TI/A specifications</assert>
        </rule>

        <rule id="MANDATORY-TAG-296" context="ifd[class=image]" level="error">
            <title>ResolutionUnit mandatory tag</title>
            <description>This tag encodes the unit of measurement for the XResolution and Yresolution. This tag is mandatory and there is no default value.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1 Tag List</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=ResolutionUnit]}">ResolutionUnit is mandatory regarding the TI/A specifications</assert>
        </rule>
    </rules>

    <rules id="RECOMMENDED">
        <title>Recommended tags for TI/A</title>
        <description>This section describes the list of optional but recommended tags in TI/A Draft</description>

        <rule id="RECOMMENDED-TAG-274-0001" context="ifd[class=image]" level="warning">
            <title>Orientation recommended tag</title>
            <description>This tag encodes the orientation of the camera relative to the scene, when the image was captured. Only the value 1 is allowed.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.2 Tag Reference</section>
                <page>30</page>
            </reference>
            <assert test="{!tags.tag[name=Orientation]}">Orientation is recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="RECOMMENDED-TAG-270" context="ifd[thumbnail=0]" level="warning">
            <title>ImageDescription recommended tag</title>
            <description>A string that describes the subject or purpose of the image is recorded as a null-terminated ASCII string. This tag field may be additionally used to provide any other type of information related to the image. 
                This is a mandatory tag, with an allowed value of " " (null character), indicating "unknown".</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.2 Tag Reference</section>
                <page>46</page>
            </reference>
            <assert test="{!tags.tag[name=ImageDescription]}">ImageDescription is recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="RECOMMENDED-TAG-700" context="ifd[thumbnail=0]" level="warning">
            <title>XMP recommended tag</title>
            <description>This tag defines an XML/RDF-based metadata container.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.2 Tag Reference</section>
                <page>54</page>
            </reference>
            <assert test="{!tags.tag[name=XMP]}">XMP is recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="RECOMMENDED-TAG-33432" context="ifd[thumbnail=0]" level="warning">
            <title>Copyright recommended tag</title>
            <description>This tag encodes the copyright notice of the copyright holder. This is a mandatory tag, with an allowed value of " " (null character), indicating "unknown". 
                The complete copyright statement should be listed in this field including any dates and statements of claims. If desired, this tag-field can also list the royalty clearance house.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.2 Tag Reference</section>
                <page>54</page>
            </reference>
            <assert test="{!tags.tag[name=Copyright]}">Copyright is recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="RECOMMENDED-TAG-34675" context="ifd[thumbnail=0]" level="warning">
            <title>InterColorProfile recommended tag</title>
            <description>This tag encodes an embedded InterColor device profile relating to the camera color characterization. Refer to the ICC-resources at www.color.org, for further information on the use of this tag. 
                Note that the ICC Profile Format may be revised in the future, and the most recent version of the ICC specification should be used. Therefore it is only declared optional.
            </description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.2 Tag Reference</section>
                <page>56</page>
            </reference>
            <assert test="{!tags.tag[name=ICCProfile]}">InterColorProfile is recommended regarding the TI/A specifications</assert>
        </rule>
    </rules>

    <rules id="NOTRECOMMENDED">
        <title>Not recommended tags for TI/A</title>
        <description>This section describes the list of optional but not recommended tags in TI/A Draft</description>

        <rule id="NOTRECOMMENDED-TAG-255" context="ifd[class=image]" level="warning">
            <title>SubFileTypenot recommended tag</title>
            <description>This tag has been replaced by the NewSubFileType Tag in TIFF6.0 and is therefore obsolete and not recommended.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=SubFileType]}">SubFileType is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-263" context="ifd[class=image]" level="warning">
            <title>Threshholdingnot recommended tag</title>
            <description>For black and white TIFF files that represent shades of gray, the technique used to convert from gray to black and white pixels.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=Threshholding]}">Threshholding is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-264" context="ifd[class=image]" level="warning">
            <title>CellWidthnot recommended tag</title>
            <description>The width of the dithering or halftoning matrix used to create a dithered or halftoned bilevel file.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=CellWidth]}">CellWidth is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-265" context="ifd[class=image]" level="warning">
            <title>CellLengthnot recommended tag</title>
            <description>The length of the dithering or halftoning matrix used to create a dithered or halftoned bilevel file.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=CellLength]}">CellLength is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-266" context="ifd[class=image]" level="warning">
            <title>FillOrdernot recommended tag</title>
            <description>The logical order of bits within a byte. Used in CCITT 1D or 2D compression. This compression is not widely used so it is likely to become obsolete.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=FillOrder]}">FillOrder is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-280" context="ifd[class=image]" level="warning">
            <title>MinSampleValuenot recommended tag</title>
            <description>The minimum component value used. This field is used only for statistical purposes. It does not affect the visual appereance of an image.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=MinSampleValue]}">MinSampleValue is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-281" context="ifd[class=image]" level="warning">
            <title>MaxSampleValuenot recommended tag</title>
            <description>The maximum component value used. This field is used only for statistical purposes. It does not affect the visual appereance of an image.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=MaxSampleValue]}">MaxSampleValue is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-288" context="ifd[class=image]" level="warning">
            <title>FreeOffsetsnot recommended tag</title>
            <description>For each string of contiguous unused bytes in a TIFF file, the byte offset of the string.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=FreeOffsets]}">FreeOffsets is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-289" context="ifd[class=image]" level="warning">
            <title>FreeByteCountsnot recommended tag</title>
            <description>For each string of contiguous unused bytes in a TIFF file, the number of bytes in the string.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=FreeByteCounts]}">FreeByteCounts is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-290" context="ifd[class=image]" level="warning">
            <title>GrayResponseUnitnot recommended tag</title>
            <description>The precision of the information contained in the GrayResponseCurve.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=GrayResponseUnit]}">GrayResponseUnit is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-291" context="ifd[class=image]" level="warning">
            <title>GrayResponseCurvenot recommended tag</title>
            <description>For grayscale data, the optical density of each possible pixel value.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=GrayResponseCurve]}">GrayResponseCurve is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-292" context="ifd[class=image]" level="warning">
            <title>T4Optionsnot recommended tag</title>
            <description>This tag relates to Group 3 Fax Compression. This compression of bilevel images is not allowed in TI/A because it is not widely used, therefore it is likly to become obsolete.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=T4Options]}">T4Options is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-293" context="ifd[class=image]" level="warning">
            <title>T6Optionsnot recommended tag</title>
            <description>This tag relates to Group 4 Fax Compression. This compression of bilevel images is not recommended. Since there are some images around in archives, this is a case to discuss. We would recommend to convert and declare this tag as not recommended.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=T6Options]}">T6Options is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-301" context="ifd[class=image]" level="warning">
            <title>TransferFunctionnot recommended tag</title>
            <description>Describes a transfer function for the image in tabular style. Pixel components can be gamma-compensated, companded, non-uniformly quantized, or coded in some other way. The TransferFunction maps the pixel components from a non-linear BitsPerSample (e.g. 8-bit) form into a 16-bit linear form without a perceptible loss of accuracy.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=TransferFunction]}">TransferFunction is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-318" context="ifd[class=image]" level="warning">
            <title>WhitePointnot recommended tag</title>
            <description>The chromaticity of the white point of the image. This tag is used in relation to CIELab and YCC color which is not allowed in TI/A.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=WhitePoint]}">WhitePoint is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-319" context="ifd[class=image]" level="warning">
            <title>PrimaryChromaticitiesnot recommended tag</title>
            <description>The chromaticities of the primaries of the image. This tag relates to the CIE xy chromaticity diagram which is not allowed in TI/A.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=PrimaryChromaticities]}">PrimaryChromaticities is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-321" context="ifd[class=image]" level="warning">
            <title>HalftoneHintsnot recommended tag</title>
            <description>The purpose of the HalftoneHints field is to convey to the halftone function the range of gray levels within a colorimetrically-specified YCC ot CIELab image that should retain tonal detail.
                Since YCC and CIELab color is not allowed in TI/A this tag is not recommended.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=HalftoneHints]}">HalftoneHints is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-322" context="ifd[class=image]" level="warning">
            <title>TileWidthnot recommended tag</title>
            <description>This tag relates to tiling which is not allowed in TI/A.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=TileWidth]}">TileWidth is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-323" context="ifd[class=image]" level="warning">
            <title>TileLengthnot recommended tag</title>
            <description>This tag relates to tiling which is not allowed in TI/A.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=TileLength]}">TileLength is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-324" context="ifd[class=image]" level="warning">
            <title>TileOffsetsnot recommended tag</title>
            <description>This tag relates to tiling which is not allowed in TI/A.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=TileOffsets]}">TileOffsets is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-325" context="ifd[class=image]" level="warning">
            <title>TileByteCountsnot recommended tag</title>
            <description>This tag relates to tiling which is not allowed in TI/A.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=TileBYTECounts]}">TileByteCounts is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-342" context="ifd[class=image]" level="warning">
            <title>TransferRangenot recommended tag</title>
            <description>This tag is used in relation to YCC color which is not allowed in TI/A.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=TransferRange]}">TransferRange is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-512" context="ifd[class=image]" level="warning">
            <title>JPEGProcnot recommended tag</title>
            <description>This tag refers to JPEG the compression scheme before the TIFFTechNote2, which made all JPEG related tags in TIFF 6.0 obsolete. These tags were replaced by the tag JPEGTables (347).</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=JPEGProc]}">JPEGProc is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-513" context="ifd[class=image]" level="warning">
            <title>JPEGInterChangeFormatnot recommended tag</title>
            <description>This tag refers to JPEG the compression scheme before the TIFFTechNote2, which made all JPEG related tags in TIFF 6.0 obsolete. These tags were replaced by the tag JPEGTables (347).</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=JPEGInterChangeFormat]}">JPEGInterChangeFormat is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-514" context="ifd[class=image]" level="warning">
            <title>JPEGInterchangeFormatLengthnot recommended tag</title>
            <description>This tag refers to JPEG the compression scheme before the TIFFTechNote2, which made all JPEG related tags in TIFF 6.0 obsolete. These tags were replaced by the tag JPEGTables (347).</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=JPEGInterchangeFormatLength]}">JPEGInterchangeFormatLength is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-515" context="ifd[class=image]" level="warning">
            <title>JPEGRestartIntervalnot recommended tag</title>
            <description>This tag refers to JPEG the compression scheme before the TIFFTechNote2, which made all JPEG related tags in TIFF 6.0 obsolete. These tags were replaced by the tag JPEGTables (347).</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=JPEGRestartInterval]}">JPEGRestartInterval is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-517" context="ifd[class=image]" level="warning">
            <title>JPEGLosslessPredictorsnot recommended tag</title>
            <description>This tag refers to JPEG the compression scheme before the TIFFTechNote2, which made all JPEG related tags in TIFF 6.0 obsolete. These tags were replaced by the tag JPEGTables (347).</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=JPEGLosslessPredictors]}">JPEGLosslessPredictors is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-518" context="ifd[class=image]" level="warning">
            <title>JPEGPointTransformsnot recommended tag</title>
            <description>This tag refers to JPEG the compression scheme before the TIFFTechNote2, which made all JPEG related tags in TIFF 6.0 obsolete. These tags were replaced by the tag JPEGTables (347).</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=JPEGPointTransforms]}">JPEGPointTransforms is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-519" context="ifd[class=image]" level="warning">
            <title>JPEGQTablesnot recommended tag</title>
            <description>This tag refers to JPEG the compression scheme before the TIFFTechNote2, which made all JPEG related tags in TIFF 6.0 obsolete. These tags were replaced by the tag JPEGTables (347).</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=JPEGQTables]}">JPEGQTables is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-521" context="ifd[class=image]" level="warning">
            <title>JPEGACTablesnot recommended tag</title>
            <description>This tag refers to JPEG the compression scheme before the TIFFTechNote2, which made all JPEG related tags in TIFF 6.0 obsolete. These tags were replaced by the tag JPEGTables (347).</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=JPEGACTables]}">JPEGACTables is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-529" context="ifd[class=image]" level="warning">
            <title>YCbCrCoefficientsnot recommended tag</title>
            <description>This tag refers to JPEG the compression scheme before the TIFFTechNote2, which made all JPEG related tags in TIFF 6.0 obsolete. These tags were replaced by the tag JPEGTables (347).</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=YCbCrCoefficients]}">YCbCrCoefficients is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-530" context="ifd[class=image]" level="warning">
            <title>YCbCrSubSamplingnot recommended tag</title>
            <description>This tag encodes the subsampling factors used for the chrominance components of a YCbCr image. Since YCC colors are not recommended in TI/A, this tag is not allowed.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=YCbCrSubSampling]}">YCbCrSubSampling is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-531" context="ifd[class=image]" level="warning">
            <title>YCbCrPositioningnot recommended tag</title>
            <description>This tag encodes the positions of subsampled chrominance components relative to luminance samples. Since YCC colors are not recommended in TI/A, this tag is not allowed.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=YCbCrPositioning]}">YCbCrPositioning is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-532" context="ifd[class=image]" level="warning">
            <title>ReferenceBlackWhitenot recommended tag</title>
            <description>This tag is used related to YCC colors and therefore not recommended in TI/A.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=ReferenceBlackWhite]}">ReferenceBlackWhite is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-33421" context="ifd[class=image]" level="warning">
            <title>CFARepeatPatternDimnot recommended tag</title>
            <description>This tag encodes the number of pixels horizontally and vertically that are needed to uniquely define the repeat pattern of the color filter array (CFA) pattern used in the color image sensor.
                Since this tag defines elements of a raw file and raw files are not allowed in TI/A this tag is not recommended.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=CFARepeatPatternDim]}">CFARepeatPatternDim is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-33422" context="ifd[class=image]" level="warning">
            <title>CFAPatternnot recommended tag</title>
            <description>Since this tag defines elements of a raw file and raw files are not allowed in TI/A this tag is not recommended.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=CFAPattern]}">CFAPattern is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-34857" context="ifd[class=image]" level="warning">
            <title>Interlacenot recommended tag</title>
            <description>Interlacing is not allowed in TI/A images.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=Interlace]}">Interlace is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-37122" context="ifd[class=image]" level="warning">
            <title>CompressedBitsPerPixelnot recommended tag</title>
            <description>This tag encodes the average number of bits per pixel used to store a compressed raw image. Since raw images are not allowed in TI/A this tag is not recommended.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=CompressedBitsPerPixel]}">CompressedBitsPerPixel is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-37390" context="ifd[class=image]" level="warning">
            <title>FocalPlaneXResolutionnot recommended tag</title>
            <description>This tag encodes the number of pixels per FocalPlaneResolutionUnit  in the ImageWidth  direction for the main image. This tag specifies the actual FocalPlaneXResolution  at the focal plane of the camera.
                Since this tag relates to raw images it is not recommended.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=FocalPlaneXResolution]}">FocalPlaneXResolution is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-37391" context="ifd[class=image]" level="warning">
            <title>FocalPlaneYResolutionnot recommended tag</title>
            <description>This tag encodes the number of pixels per FocalPlaneResolutionUnit  in the ImageLength  direction for the main image. This tag specifies the actual FocalPlaneYResolution  at the focal plane of the camera.
                Since this tag relates to raw images and therefore is not recommended.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=FocalPlaneYResolution]}">FocalPlaneYResolution is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-37392" context="ifd[class=image]" level="warning">
            <title>FocalPlaneResolutionUnitnot recommended tag</title>
            <description>This tag encodes the unit of measurement for the FocalPlaneXResolution  and FocalPlaneYResolution. Since this tag relates to raw images and therefore is not recommended.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=FocalPlaneResolutionUnit]}">FocalPlaneResolutionUnit is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-37724" context="ifd[class=image]" level="warning">
            <title>ImageSourceDatanot recommended tag</title>
            <description>This tag describes the Adobe Photoshop specific image source data tag. This section has the layer and mask information found in a typical layered Photoshop file.
                Since layered files are not recommended in TI/A this tag is not allowed.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=ImageSourceData]}">ImageSourceData is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-338" context="ifd[class=image]" level="warning">
            <title>ExtraSamples not recommended tag</title>
            <description>Controlls the alpha channel. Not recommended in TI/A images.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=ExtraSamples]}">ExtraSamples is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-347" context="ifd[class=image]" level="warning">
            <title>JPEGTables not recommended tag</title>
            <description>This tag replaced the TIFF Rev. 6.0 specification in the tags 512, 513, 514, 515, 517, 518, 519, 520 and 521, whose design proved  inappropriate. TIFF JPEG compression is allowed, but not recommended. </description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=JPEGTables]}">JPEGTables is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-34665" context="ifd[class=image]" level="warning">
            <title>ExifIFD not recommended tag</title>
            <description>Exif IFD is a set of tags for recording Exif-specific attribute information. It is pointed to by the offset from the TIFF header (Value Offset) indicated by an Exif private tag value. 
                An Exif IFD has the same structure as that of the IFD specified in TIFF. Ordinarily, however, it does not contain image data as in the case of TIFF.  It is not recommended in TI/A.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=ExifIFD]}">ExifIFD is not recommended regarding the TI/A specifications</assert>
        </rule>

        <rule id="NOTRECOMMENDED-TAG-36864" context="ifd[class=image]" level="warning">
            <title>ExifVersion not recommended tag</title>
            <description>The version of the supported Exif standard.  According to exif.org, nonexistence of this field is taken to mean nonconformance to the Exif standard.  
                In the context of TI/A this tag is not applicable.</description>
            <reference><document>TI/A Draft v0.1</document>
                <section>Section 5.1.2 List of not recommended or problematic Tags</section>
                <page>17</page>
            </reference>
            <assert test="{tags.tag[name=ExifVersion]}">ExifVersion is not recommended regarding the TI/A specifications</assert>
        </rule>
    </rules>

</implementationCheckerObject>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy