implementationcheckers.TiffITP2ProfileChecker.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tiffimplementationchecker Show documentation
Show all versions of tiffimplementationchecker Show documentation
Implementation Checker for TIFF
<?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>TIFF/IT-P2</title> <iso>TIFF/IT-P2</iso> <description>ISO 12639:2004(E)</description> <version>1.0.0</version> <author>Easy Innova</author> <date>2016-09-20</date> <include> <policyChecker>TIFF_Baseline_Core_6_0.xml</policyChecker> <excluderules>IFDE-0001</excluderules> <excluderules>TAG-296-0005</excluderules> <excluderules>TAG-254-0003</excluderules> <excluderules>TAG-259-0003</excluderules> <excluderules>TAG-284-0003</excluderules> <excluderules>TAG-284-0004</excluderules> <excluderules>TAG-262-0003</excluderules> </include> <include> <policyChecker>TiffITProfileChecker.xml</policyChecker> <excluderules>TIFF-IT-CT</excluderules> <excluderules>TIFF-IT-CT-RGB</excluderules> <excluderules>TIFF-IT-CT-CIELAB</excluderules> <excluderules>TIFF-IT-LW</excluderules> <excluderules>TIFF-IT-HC</excluderules> <excluderules>TIFF-IT-MP</excluderules> <excluderules>TIFF-IT-BP</excluderules> <excluderules>TIFF-IT-BL</excluderules> <excluderules>TIFF-IT-SD</excluderules> <excluderules>TIFF-IT-FP</excluderules> </include> <rules id="TIFF-IT-P2"> <title>Image rules</title> <description></description> <rule id="TIFF-IT-P2-0001" context="ifd[class=image]" level="error"> <title>Forbidden DocumentName tag</title> <description>DocumentName tag is forbidden in TIFF/IT P2</description> <reference><section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page></reference> <assert test="{!tags.tag[name=DocumentName]}">DocumentName tag is forbidden in TIFF/IT P2</assert> </rule> <rule id="TIFF-IT-P2-0002" context="ifd[class=image]" level="error"> <title>Forbidden Model tag</title> <description>Model tag is forbidden in TIFF/IT P2</description> <reference><section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page></reference> <assert test="{!tags.tag[name=Model]}">Model tag is forbidden in TIFF/IT P2</assert> </rule> <rule id="TIFF-IT-P2-0003" context="ifd[class=image]" level="error"> <title>Orientation valid value</title> <description>Orientation valid value is 1</description> <reference><section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page></reference> <assert test="{!tags.tag[name=Orientation] || {tags.tag[name=Orientation]==1}">Orientation value must be 1</assert> </rule> <rule id="TIFF-IT-P2-0004" context="ifd[class=image]" level="error"> <title>Forbidden PageName tag</title> <description>PageName tag is forbidden in TIFF/IT P2</description> <reference><section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page></reference> <assert test="{!tags.tag[name=PageName]}">PageName tag is forbidden in TIFF/IT P2</assert> </rule> <rule id="TIFF-IT-P2-0005" context="ifd[class=image]" level="error"> <title>Forbidden HostComputer tag</title> <description>HostComputer tag is forbidden in TIFF/IT P2</description> <reference><section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page></reference> <assert test="{!tags.tag[name=HostComputer]}">HostComputer tag is forbidden in TIFF/IT P2</assert> </rule> <rule id="TIFF-IT-P2-0006" context="ifd[class=image]" level="error"> <title>Forbidden Site tag</title> <description>Site tag is forbidden in TIFF/IT P2</description> <reference><section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page></reference> <assert test="{!tags.tag[name=Site]}">Site tag is forbidden in TIFF/IT P2</assert> </rule> <rule id="TIFF-IT-P2-0007" context="ifd[class=image]" level="error"> <title>Forbidden IT8Header tag</title> <description>IT8Header tag is forbidden in TIFF/IT P2</description> <reference><section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page></reference> <assert test="{!tags.tag[name=IT8Header]}">IT8Header tag is forbidden in TIFF/IT P2</assert> </rule> </rules> <rules id="TIFF-IT-CT-P2"> <title>TIFF/IT-CT/P2 Colour continuous-tone picture</title> <description>There are three formats for describing the pixel structure of colour continuous-tone picture file data: pixel interleaving (also called chunky format). line interleaving (also called row interleaving). colour interleaving (also called planar format). TIFF/IT-CT/P2 can be considered as an extension of TIFF/IT-CT/P1. It is possible that TIFF/IT-CT/P2 files will not be readable by typical TIFF 6.0 readers if the CMYKEquivalent tag is used. TIFF/IT-CT/P2 permit optional JPEG or Flate compression of image data. TIFF/IT-CT/P1 does not permit any compression of image data. NOTE TIFF/IT-CT/P2 do not allow the use of a value 32895 for field 259 (Compression) to indicate the use of raster padding nor do they allow the use of field 34019 (RasterPadding). </description> <rule id="TIFF-IT-CT-P2-0001" context="ifd[filetype=ct]" level="error" experimental="true"> <title>TIFF/IT-CT/P2 BitsPerSample valid values</title> <description>BitsPerSample on a colour continuous-tone picture (CT) file must be 8,8,8,8</description> <reference> <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page> </reference> <assert test="{tags.tag[name=InkSet]} || {tags.tag[name=InkSet] != 1} || {tags.tag[name=BitsPerSample] == '8,8,8,8'}">Invalid BitsPerSample value. BitsPerSample should be [8,8,8,8]</assert> </rule> <rule id="TIFF-IT-CT-P2-0002" context="ifd[filetype=ct]" level="error"> <title>TIFF/IT-CT/P2 Compression valid values</title> <description>Compression valid values for colour continuous-tone picture (CT) are: 1 = No compression 7 = JPEG encoding scheme ('new-style' JPEG) 8 = Deflate ('Adobe-style') </description> <reference> <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page> </reference> <assert test="{tags.tag[name=Compression] == 1} || {tags.tag[name=Compression] == 7} || {tags.tag[name=Compression] == 8}">Invalid Compression value for colour continuous-tone picture (CT) image</assert> </rule> <rule id="TIFF-IT-CT-P2-0003" context="ifd[filetype=ct]" level="error"> <title>TIFF/IT-CT/P2 PhotometricInterpretation valid value</title> <description>The only valid value for PhotometricInterpretation in continuous-tone picture (CT) is CMYK</description> <reference> <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page> </reference> <assert test="{tags.tag[name=PhotometricInterpretation] == 5}">Invalid PhotometricInterpretation value, Compression should be CMYK (5)</assert> </rule> <rule id="TIFF-IT-CT-P2-0004" context="ifd[filetype=ct]" level="error"> <title>TIFF/IT-CT/P2 SamplesPerPixel valid values</title> <description>SamplesPerPixel on a colour continuous-tone picture (CT) file must be 4</description> <reference> <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page> </reference> <assert test="{tags.tag[name=InkSet]} || {tags.tag[name=InkSet] != 2} || {tags.tag[name=SamplesPerPixel] == 4}">Invalid SamplesPerPixel. SamplesPerPixel for colour continuous-tone picture (CT) CMYK image without InkSet tag should be 4</assert> </rule> <rule id="TIFF-IT-CT-P2-0005" context="ifd[filetype=ct]" level="error"> <title>TIFF/IT-CT/P2 PlanarConfiguration valid values </title> <description>PlanarConfiguration on a colour continuous-tone picture (CT) file must be 1</description> <reference> <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page> </reference> <assert test="{tags.tag[name=PlanarConfiguration] == 1}">Invalid PlanarConfiguration. PlanarConfiguration for colour continuous-tone picture (CT) CMYK should be 1</assert> </rule> <rule id="TIFF-IT-CT-P2-0006" context="ifd[filetype=ct]" level="error"> <title>TIFF/IT-CT/P2 InkSet valid values </title> <description>InkSet on a colour continuous-tone picture (CT) file must be 1</description> <reference> <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page> </reference> <assert test="{tags.tag[name=InkSet] == 1}">Invalid InkSet. InkSet for colour continuous-tone picture (CT) CMYK should be 1</assert> </rule> <rule id="TIFF-IT-CT-P2-0007" context="ifd[filetype=ct]" level="error"> <title>TIFF/IT-CT/P2 NumberOfInks valid value</title> <description>If NumberOfInks tag is used, it must be 4</description> <reference> <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page> </reference> <assert test="{tags.tag[name=NumberOfInks] == 4}">invalid NumberOfInks. If NumberOfInks tag is used, it must be 4</assert> </rule> <rule id="TIFF-IT-CT-P2-0008" context="ifd[filetype=ct]" level="error" experimental="true"> <title>TIFF/IT-CT/P2 NumberOfInks match SamplesPerPixel</title> <description>If NumberOfInks tag is used, it must have the same value as the value of SamplesPerPixel</description> <reference> <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page> </reference> <assert test="{!tags.tag[name=NumberOfInks]} || {tags.tag[name=NumberOfInks] == tags.tag[name=SamplesPerPixel]}">invalid NumberOfInks. If NumberOfInks tag is used, it must have the same value as the value of SamplesPerPixel</assert> </rule> <rule id="TIFF-IT-CT-P2-0009" context="ifd[filetype=ct]" level="error"> <title>TIFF/IT-CT/P2 DotRange valid value</title> <description>If DotRange tag is used, it must be 0,255</description> <reference> <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page> </reference> <assert test="{tags.tag[name=DotRange] == 0,255}">invalid DotRange. If DotRange tag is used, it must be 0,255</assert> </rule> <rule id="TIFF-IT-CT-P2-0010" context="ifd[filetype=ct]" level="error"> <title>TIFF/IT-CT/P2 ColorSequence valid values for RGB</title> <description>ColorSequence on a colour continuous-tone picture (CT) file must be CMYK</description> <reference> <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page> </reference> <assert test="{tags.tag[name=ColorSequence] == 'CMYK'}">Invalid ColorSequence. ColorSequence on a colour continuous-tone picture (CT) file must be CMYK</assert> </rule> <rule id="TIFF-IT-CT-P2-0011" context="ifd[filetype=ct]" level="error"> <title>TIFF/IT-CT/P2 RasterPadding is forbidden</title> <description>RasterPadding on a colour continuous-tone picture (CT) TIFF/IT P2 file is forbidden</description> <reference> <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page> </reference> <assert test="{!tags.tag[name=RasterPadding]}">RasterPadding on a colour continuous-tone picture (CT) TIFF/IT P2 file is forbidden</assert> </rule> </rules> <rules id="TIFF-IT-LW-P2"> <title>Colour line-art (LW) file</title> <description>Colour line-art data consists of an image file comprised of the following three parts.The first part consists of one or more blocks of run-length encoded data describing the colour line-art image in terms of colour numbers and run lengths.The second part is a colour table (in the IFD) that defines the colour values for the colour numbers of the first part.The third part is a table describing the separations of the second part.This data structure is similar to binary line-art data with the addition of two colour tables for colour specification. IFF/IT-LW/P2 can be considered as an extension of TIFF/IT-LW/P1. NOTE TIFF/IT-LW files are not readable by typical TIFF 6.0 readers and cannot be written by typical TIFF 6.0 writers because of the mandatory use of TIFF/IT-specific fields and values and non-traditional interpretations of other TIFF 6.0 fields and values (e.g. compression by mandatory run length encoding). </description> <rule id="TIFF-IT-LW-P2-0001" context="ifd[filetype=lw]" level="error"> <title>TIFF/IT-LW/P2 BitsPerSample valid value</title> <description>BitsPerSample valid value on a Colour line-art picture (LW) file must be 8</description> <reference> <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page> </reference> <assert test="{tags.tag[name=BitsPerSample] == 8">Invalid BitsPerSample value. BitsPerSample on a Colour line-art picture (LW) file must be 8</assert> </rule> <rule id="TIFF-IT-LW-P2-0002" context="ifd[filetype=lw]" level="error"> <title>TIFF/IT-LW/P2 Compression valid value</title> <description>Compression value on a Colour line-art picture (LW) picture must be IT8 Linework RLE (32896)</description> <reference> <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page> </reference> <assert test="{tags.tag[name=Compression] == 32896}">Invalid Compression value, Compression should be IT8 Linework RLE (32896)</assert> </rule> <rule id="TIFF-IT-LW-P2-0003" context="ifd[filetype=lw]" level="error"> <title>TIFF/IT-LW/P2 PhotometricInterpretation valid value</title> <description>PhotometricInterpretation value on a Colour line-art picture (LW) picture must be CMYK (5)</description> <reference> <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page> </reference> <assert test="{tags.tag[name=PhotometricInterpretation] == 5}">Invalid PhotometricInterpretation value. PhotometricInterpretation should be CMYK (5)</assert> </rule> <rule id="TIFF-IT-LW-P2-0004" context="ifd[filetype=lw]" level="error"> <title>TIFF/IT-LW/P2 SamplesPerPixel valid value</title> <description>SamplesPerPixel value on a Colour line-art picture (LW) picture must be 1</description> <reference> <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page> </reference> <assert test="{tags.tag[name=SamplesPerPixel] == 1}">Invalid SamplesPerPixel value. SamplesPerPixel should be 1</assert> </rule> <rule id="TIFF-IT-LW-P2-0005" context="ifd[filetype=lw]" level="error"> <title>TIFF/IT-LW/P2 InkSet valid value </title> <description>InkSet value on a Colour line-art picture (LW) picture must be 1</description> <reference> <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page> </reference> <assert test="{tags.tag[name=InkSet] == 1}">Invalid InkSet value, InkSet should be 1</assert> </rule> <rule id="TIFF-IT-LW-P2-0007" context="ifd[filetype=lw]" level="error" experimental="true"> <title>TIFF/IT-LW/P2 NumberOfInks match SamplesPerPixel</title> <description>If NumberOfInks tag is used on a Colour line-art picture (LW) TIFF/IT P2 file, it must have the same value as the value of SamplesPerPixel</description> <reference> <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page> </reference> <assert test="{tags.tag[name=NumberOfInks] == tags.tag[name=SamplesPerPixel]}">NumberOfInks tag on a Colour line-art picture (LW) TIFF/IT P2 file, must have the same value as the value of SamplesPerPixel</assert> </rule> <rule id="TIFF-IT-LW-P2-0008" context="ifd[filetype=lw]" level="error"> <title>TIFF/IT-LW/P2 NumberOfInks valid value</title> <description>If NumberOfInks tag is used on a Colour line-art picture (LW) TIFF/IT P2 file, it must be 4</description> <reference> <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page> </reference> <assert test="{tags.tag[name=NumberOfInks] == 4}">Invalid NumberOfInks. If NumberOfInks tag is used, it must be 4</assert> </rule> <rule id="TIFF-IT-LW-P2-0009" context="ifd[filetype=lw]" level="error"> <title>TIFF/IT-LW/P2 BitsPerExtendedRunLength valid value</title> <description>BitsPerExtendedRunLength on a Colour line-art picture (LW) TIFF/IT P2 file must be 16</description> <reference> <section>Section 7.3.3: TIFF/IT-CT encoding</section><page>23</page> </reference> <assert test="{tags.tag[name=BitsPerExtendedRunLength] == 16}">Invalid BitsPerExtendedRunLength. BitsPerExtendedRunLength on a Colour line-art picture (LW) TIFF/IT P2 file must be 16</assert> </rule> <rule id="TIFF-IT-LW-P2-0010" context="ifd[filetype=lw]" level="error"> <title>TIFF/IT-CT ColorTable is mandatory</title> <description>ColorTable is mandatory for on a Colour line-art picture (LW) TIFF/IT P2 </description> <reference> <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page> </reference> <assert test="{tags.tag[name=ColorTable]}">ColorTable is mandatory for on a Colour line-art picture (LW) TIFF/IT P2</assert> </rule> </rules> <rules id="TIFF-IT-HC-P2"> <title>High-resolution continuous-tone (HC) file</title> <description>High-resolution continuous-tone data consist of an image file of one or more blocks of run-length encoded pixel data. The number of lines is defined in the ImageLength field. Each line is made up of pixel runs and starts and ends with a blank pixel run (all zero bytes). Each pixel run is made up of two components: a run length followed by a colour value. The run length is a 16-bit integer as defined in 7.4.2.4.2. The big-endian byte order is used regardless of the order used in the TIFF/IT directories (IFD). The sum of the run lengths in the line shall be the value found in ImageWidth. Run lengths shall not cross line boundaries. The colour value is defined by the values of SamplesPerPixel, BitsPerSample, ColorSequence and DotRange in the same manner that CT colour values are specified, except that a special case of colour value is reserved for a transparent colour, if used. TIFF/IT field 34028 is used as the transparency indicator. If transparency is used, colour values of zero become a special case, and signify transparency in that separation of the high-resolution continuous-tone (HC) data. Transparency indicates that the underlying colour picture separation value is used. TIFF/IT-HC/P2 is an extension of TIFF/IT-HC/P1. NOTE TIFF/IT-HC/P2 is not readable by typical TIFF 6.0 readers and cannot be written by typical TIFF 6.0 writers because of the mandatory use of TIFF/IT-specific fields and values and nontraditional interpretations of other TIFF 6.0 fields and values (e.g. compression by mandatory run-length encoding). </description> <rule id="TIFF-IT-HC-P2-0001" context="ifd[filetype=hc]" level="error" experimental="true"> <title>TIFF/IT-HC/P2 BitsPerSample valid values</title> <description>BitsPerSample on a High-resolution continuous-tone data (HC) file without InkSet tag must be [8,8,8,8]</description> <reference> <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page> </reference> <assert test="tags.tag[name=InkSet]} || {tags.tag[name=InkSet] != 2} || {tags.tag[name=BitsPerSample] == '8,8,8,8'}">Invalid BitsPerSample value. BitsPerSample should be [8,8,8,8]</assert> </rule> <rule id="TIFF-IT-HC-P2-0002" context="ifd[filetype=hc]" level="error"> <title>TIFF/IT-HC/P2 Compression valid value </title> <description>Compression valid values for High-resolution continuous-tone data (HC) is IT8MP Run-length encoding, used with HC format (32897)</description> <reference> <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page> </reference> <assert test="{tags.tag[name=Compression] == 32897}">Invalid Compression. Compression for High-resolution continuous-tone data should be IT8MP Run-length encoding (32897)</assert> </rule> <rule id="TIFF-IT-HC-P2-0003" context="ifd[filetype=hc]" level="error"> <title>TIFF/IT-HC/P2 PhotometricInterpretation valid value</title> <description>PhotometricInterpretation valid value for High-resolution continuous-tone data (HC) is CMYK (5)</description> <reference> <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page> </reference> <assert test="{tags.tag[name=PhotometricInterpretation] == 5}">Invalid PhotometricInterpretation value, PhotometricInterpretation should be CMYK (5)</assert> </rule> <rule id="TIFF-IT-HC-P2-0004" context="ifd[filetype=hc]" level="error"> <title>TIFF/IT-HC/P2 SamplesPerPixel valid values for CMYK</title> <description>TIFF/IT-HC/P2 SamplesPerPixel valid values for CMYK</description> <reference> <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page> </reference> <assert test="{tags.tag[name=InkSet]} || {tags.tag[name=InkSet] != 2} || {tags.tag[name=SamplesPerPixel] == 4}">Invalid SamplesPerPixel. SamplesPerPixel for colour continuous-tone picture (CT) CMYK image without InkSet tag should be 4</assert> </rule> <rule id="TIFF-IT-HC-P2-0005" context="ifd[filetype=hc]]" level="error"> <title>TIFF/IT-HC/P2 PlanarConfiguration valid value</title> <description>PlanarConfiguration for a High-resolution continuous-tone data (HC) must be 1</description> <reference> <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page> </reference> <assert test="{tags.tag[name=PlanarConfiguration] == 1}">Invalid PlanarConfiguration. PlanarConfiguration for a High-resolution continuous-tone data (HC) should be 1</assert> </rule> <rule id="TIFF-IT-HC-P2-0006" context="ifd[filetype=hc]]" level="error"> <title>TIFF/IT-HC/P2 InkSet valid value</title> <description>InkSet for a High-resolution continuous-tone data (HC) must be 1</description> <reference> <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page> </reference> <assert test="{tags.tag[name=InkSet] == 1}">Invalid InkSet. InkSet for a High-resolution continuous-tone data (HC) should be 1</assert> </rule> <rule id="TIFF-IT-HC-P2-0007" context="ifd[filetype=hc]" level="error"> <title>TIFF/IT-HC/P2 NumberOfInks valid value</title> <description>SamplesPerPixel value for High-resolution continuous-tone data (HC) must be 4</description> <reference> <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page> </reference> <assert test="{tags.tag[name=NumberOfInks] == 4}">Invalid NumberOfInks value, SamplesPerPixel should be 4</assert> </rule> <rule id="TIFF-IT-HC-P2-0008" context="ifd[filetype=hc]" level="error"> <title>TIFF/IT-HC/P2 DotRange valid value</title> <description>If DotRange tag is used for High-resolution continuous-tone data (HC) TIFF/IT P2 file, it must be 0,255</description> <reference> <section>Section 7.4.3: TIFF/IT-LW, TIFF/IT-LW/P1 and TIFF/IT-LW/P2 encoding</section><page>31</page> </reference> <assert test="{tags.tag[name=DotRange] == 0,255}">Invalid DotRange. If DotRange tag is used, it must be 0,255</assert> </rule> <rule id="TIFF-IT-HC-P2-0009" context="ifd[filetype=hc]" level="error"> <title>TIFF/IT-HC/P2 ColorSequence valid value</title> <description>ColorSequence for a High-resolution continuous-tone data (HC) must be CMYK</description> <reference> <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page> </reference> <assert test="{tags.tag[name=ColorSequence] == 'CMYK'}">Invalid ColorSequence value. ColorSequence for a High-resolution continuous-tone data (HC) must be CMYK</assert> </rule> </rules> <rules id="TIFF-IT-MP-P2"> <title>Monochrome continuous-tone picture (MP) file</title> <description>The image-colour values for a pixel are obtained by combining the colour values for each of the colour components with the pixel-intensity values in the data stream. This applies to foreground colours only. Monochrome continuous-tone pictures do not have background-colour specifications.The scaling of these intensity values is linear with respect to printing-dot percent. TIFF/IT-MP/P2 is an extension of TIFF/IT-MP/P1. TIFF/IT-MP/P2 permit optional JPEG or Flate compression of image data. NOTE 2 It is possible that TIFF/IT-MP/P2 files will not be readable by typical TIFF 6.0 readers, and writers will not not be able to write them because of TIFF/IT-specific fields and values and non-traditional interpretations of other TIFF 6.0 fields and values (e.g. Compression tag).</description> <rule id="TIFF-IT-MP-P2-0001" context="ifd[filetype=mp]" level="error"> <title>TIFF/IT-MP/P2 BitsPerSample valid values</title> <description>BitsPerSample on a Monochrome continuous-tone picture (MP) file must be 8</description> <reference> <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page> </reference> <assert test="tags.tag[name=BitsPerSample] == 8}">Invalid BitsPerSample value. BitsPerSample should be 8</assert> </rule> <rule id="TIFF-IT-MP-P2-0002" context="ifd[filetype=mp]" level="error"> <title>TIFF/IT-MP/p2 Compression valid values </title> <description>Compression valid values for Monochrome continuous-tone picture (MP) file are: 1 = No compression 7 = JPEG ('new-style' JPEG) 8 = Deflate ('Adobe-style'</description> <reference> <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page> </reference> <assert test="{tags.tag[name=Compression] == 1} || {tags.tag[name=Compression] == 7} || {tags.tag[name=Compression] == 8}">Invalid Compression for Monochrome continuous-tone picture (MP) file</assert> </rule> <rule id="TIFF-IT-MP-P2-0003" context="ifd[filetype=mp]" level="error"> <title>TIFF/IT-MP/P2 PhotometricInterpretation valid values</title> <description>PhotometricInterpretation valid value for Monochrome continuous-tone picture (MP) is WhiteIsZero (0)</description> <reference> <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page> </reference> <assert test="{tags.tag[name=PhotometricInterpretation] == 0}">Invalid PhotometricInterpretation value, PhotometricInterpretation should be WhiteIsZero (0)</assert> </rule> <rule id="TIFF-IT-MP-P2-0004" context="ifd[filetype=mp]" level="error"> <title>TIFF/IT-MP/P2 SamplesPerPixel valid value</title> <description>SamplesPerPixel for Monochrome continuous-tone picture (MP) should be 1</description> <reference> <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page> </reference> <assert test="{tags.tag[name=SamplesPerPixel] == 1}">Invalid SamplesPerPixel. SamplesPerPixel for Monochrome continuous-tone picture (MP) should be 1</assert> </rule> <rule id="TIFF-IT-MP-P2-0005" context="ifd[filetype=mp]" level="error"> <title>TIFF/IT-MP/P2 InkSet is forbidden</title> <description>InkSet for Monochrome continuous-tone picture (MP) P2 is forbidden</description> <reference> <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page> </reference> <assert test="{!tags.tag[name=InkSet]}">InkSet for a Monochrome continuous-tone picture (MP) TIFF/IT P2 file is forbidden</assert> </rule> <rule id="TIFF-IT-MP-P2-0006" context="ifd[filetype=mp]" level="error"> <title>TIFF/IT-MP/P2 InkNames is forbidden</title> <description>InkNames for Monochrome continuous-tone picture (MP) P2 is forbidden</description> <reference> <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page> </reference> <assert test="{!tags.tag[name=InkNames]}">InkNames for a Monochrome continuous-tone picture (MP) TIFF/IT P2 file is forbidden</assert> </rule> <rule id="TIFF-IT-MP-P2-0007" context="ifd[filetype=mp]" level="error"> <title>TIFF/IT-MP/P2 NumberOfInks is forbidden</title> <description>NumberOfInks for Monochrome continuous-tone picture (MP) P2 is forbidden</description> <reference> <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page> </reference> <assert test="{!tags.tag[name=NumberOfInks]}">NumberOfInks for a Monochrome continuous-tone picture (MP) TIFF/IT P2 file is forbidden</assert> </rule> <rule id="TIFF-IT-MP-P2-0008" context="ifd[filetype=mp]" level="error"> <title>TIFF/IT-MP/P2 DotRange valid value</title> <description>If DotRange tag is used for Monochrome continuous-tone picture (MP) TIFF/IT P2 file, it must be 0,255</description> <reference> <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page> </reference> <assert test="{tags.tag[name=DotRange] == 0,255}">Invalid DotRange. If DotRange tag is used, it must be 0,255</assert> </rule> <rule id="TIFF-IT-MP-P2-0009" context="ifd[filetype=mp]" level="error"> <title>TIFF/IT-MP/P2 ColorSequence is forbidden</title> <description>ColorSequence for Monochrome continuous-tone picture (MP) P2 is forbidden</description> <reference> <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page> </reference> <assert test="{!tags.tag[name=ColorSequence]}">ColorSequence for a Monochrome continuous-tone picture (MP) TIFF/IT P2 file is forbidden</assert> </rule> <rule id="TIFF-IT-MP-P2-0010" context="ifd[filetype=mp]" level="error"> <title>TIFF/IT-MP/P2 RasterPadding is forbidden</title> <description>RasterPadding for Monochrome continuous-tone picture (MP) P2 is forbidden</description> <reference> <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page> </reference> <assert test="{!tags.tag[name=RasterPadding]}">RasterPadding for a Monochrome continuous-tone picture (MP) TIFF/IT P2 file is forbidden</assert> </rule> <rule id="TIFF-IT-MP-P2-0011" context="ifd[filetype=mp]" level="error"> <title>TIFF/IT-MP/P1 ImageColorValue mandatory</title> <description>In a Monochrome continuous-tone picture (MP) file If ImageColorIndicator value is 1, ImageColorValue is mandatory. </description> <reference> <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page> </reference> <assert test="{tags.tag[name=ImageColorIndicator]!=1} || {tags.tag[name=ImageColorValue]}">ImageColorValue is mandatory. If ImageColorIndicator is 1 in Monochrome continuous-tone picture (MP) file.</assert> </rule> <rule id="TIFF-IT-MP-P2-0012" context="ifd[filetype=mp]" level="error"> <title>TIFF/IT-MP/P1 ImageColorValue forbidden</title> <description>In a Monochrome continuous-tone picture (MP) file If ImageColorIndicator value is 0, ImageColorValue is forbidden. </description> <reference> <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page> </reference> <assert test="{tags.tag[name=ImageColorIndicator] || {tags.tag[name=ImageColorIndicator]!=0} || {!tags.tag[name=ImageColorValue]}">ImageColorValue is forbidden if ImageColorIndicator is 0 in Monochrome continuous-tone picture (MP) file.</assert> </rule> <rule id="TIFF-IT-MP-P2-0013" context="ifd[filetype=mp]" level="error"> <title>TIFF/IT-MP/P2 PixelIntensityRange valid value</title> <description>If PixelIntensityRange tag is used for Monochrome continuous-tone picture (MP) TIFF/IT P2 file, it must be 0,255</description> <reference> <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page> </reference> <assert test="{tags.tag[name=PixelIntensityRange] == 0,255}">Invalid PixelIntensityRange. If PixelIntensityRange tag is used, it must be 0,255</assert> </rule> <rule id="TIFF-IT-MP-P2-0014" context="ifd[filetype=mp]" level="error"> <title>TIFF/IT-MP/P2 TrapIndicator is forbidden</title> <description>TrapIndicator for Monochrome continuous-tone picture (MP) P2 is forbidden</description> <reference> <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page> </reference> <assert test="{!tags.tag[name=TrapIndicator]}">TrapIndicator for a Monochrome continuous-tone picture (MP) TIFF/IT P2 file is forbidden</assert> </rule> <rule id="TIFF-IT-MP-P2-0015" context="ifd[filetype=mp]" level="error"> <title>TIFF/IT-MP/P2 CMYKEquivalent is forbidden</title> <description>CMYKEquivalent for Monochrome continuous-tone picture (MP) P2 is forbidden</description> <reference> <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page> </reference> <assert test="{!tags.tag[name=CMYKEquivalent]}">CMYKEquivalent for a Monochrome continuous-tone picture (MP) TIFF/IT P2 file is forbidden</assert> </rule> <rule id="TIFF-IT-MP-P2-0016" context="ifd[filetype=mp]" level="error"> <title>TIFF/IT-MP/P2 ICCProfile is forbidden</title> <description>ICCProfile for Monochrome continuous-tone picture (MP) P2 is forbidden</description> <reference> <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page> </reference> <assert test="{!tags.tag[name=ICCProfile]}">ICCProfile for a Monochrome continuous-tone picture (MP) TIFF/IT P2 file is forbidden</assert> </rule> <rule id="TIFF-IT-MP-P2-0017" context="ifd[filetype=mp]" level="error"> <title>TIFF/IT-MP/P2 ImageColorIndicator valid values</title> <description>In a Monochrome continuous-tone picture (MP) file ImageColorIndicator valid values are: 0 = image/background colour not defined (default value); 1 = image/background colour defined;</description> <reference> <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page> </reference> <assert test="{tags.tag[name=ImageColorIndicator] == 1} || {tags.tag[name=ImageColorIndicator] == 0} ">Invalid ImageColorIndicator value. ImageColorIndicator in Monochrome continuous-tone picture (MP) file should be 0 or 1.</assert> </rule> </rules> <rules id="TIFF-IT-BP-P2"> <title>Binary picture (BP) file</title> <description>For binary pictures, ImageColorValue and BackgroundColorValue may contain the values of the colour components for the image (foreground) and background colour, specified in the sequence as defined in ColorSequence. These colour values apply to the solid image and background colours for binary pictures. The data stream indicates which of the colours, foreground and background, will print. The bits in the data stream function as a switch between the image colour and the background colour. Bitmap fill order is from most significant bit to least significant bit within the byte, the default TIFF fill order. ImageColorIndicator and BackgroundColorIndicator field values shall be used to indicate when, if, and how image and background colours are used, including the use of transparency. TIFF/IT-BP/P1 and TIFF/IT-BP/P2 limit the field values to the default value, a single value or a small choice of values. TIFF/IT-BP/P1 and TIFF/IT-BP/P2 also limit the usage of optional fields to the minimum required for reasonable interchange. TIFF/IT-BP/P2 is an extension of TIFF/IT-BP/P1. NOTE 2 TIFF/IT-BP/P2 may not be readable by typical TIFF 6.0 readers and writers may not be able to write them because of TIFF/IT specific fields and values and non-traditional interpretations of other TIFF 6.0 fields and values (e.g. Compression tag). </description> <rule id="TIFF-IT-BP-P2-0001" context="ifd[filetype=bp]" level="error"> <title>TIFF/IT-BP/P2 BitsPerSample valid values</title> <description>BitsPerSample on a Binary picture (BP) file must be 1</description> <reference> <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page> </reference> <assert test="tags.tag[name=BitsPerSample] == 1}">Invalid BitsPerSample value. BitsPerSample should be 1</assert> </rule> <rule id="TIFF-IT-BP-P2-0002" context="ifd[filetype=bp]" level="error"> <title>TIFF/IT-BP/P2 Compression valid values </title> <description>Compression valid values for Binary picture (BP) file are: 1 = No compression 4 = CCITT Group 4 fax encoding 8 = Deflate ('Adobe-style')</description> <reference> <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page> </reference> <assert test="{tags.tag[name=Compression] == 1} || {tags.tag[name=Compression] == 4} || {tags.tag[name=Compression] == 8}">Invalid Compression for Binary picture (BP) file</assert> </rule> <rule id="TIFF-IT-BP-P2-0003" context="ifd[filetype=bp]" level="error"> <title>TIFF/IT-BP/P2 PhotometricInterpretation valid value</title> <description>PhotometricInterpretation valid value for Binary picture (BP) is WhiteIsZero</description> <reference> <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page> </reference> <assert test="{tags.tag[name=PhotometricInterpretation] == 0}">Invalid PhotometricInterpretation value, PhotometricInterpretation should be WhiteIsZero (0)</assert> </rule> <rule id="TIFF-IT-BP-P2-0004" context="ifd[filetype=bp]" level="error"> <title>TIFF/IT-BP/P2 SamplesPerPixel valid value</title> <description>SamplesPerPixel for Binary picture (BP) should be 1</description> <reference> <section>Section 7.6.3: TIFF/IT-MP, TIFF/IT-MP/P1 and TIFF/IT-MP/P2 encoding</section><page>36</page> </reference> <assert test="{tags.tag[name=SamplesPerPixel] == 1}">Invalid SamplesPerPixel. SamplesPerPixel for Binary picture (BP) should be 1</assert> </rule> <rule id="TIFF-IT-BP-P2-0005" context="ifd[filetype=bp]" level="error"> <title>TIFF/IT-BP/P2 InkSet is forbidden</title> <description>InkSet for Binary picture (BP) P2 is forbidden</description> <reference> <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page> </reference> <assert test="{!tags.tag[name=InkSet]}">InkSet for a Binary picture (BP) TIFF/IT P2 file is forbidden</assert> </rule> <rule id="TIFF-IT-BP-P2-0006" context="ifd[filetype=bp]" level="error"> <title>TIFF/IT-BP/P2 InkNames is forbidden</title> <description>InkNames for Binary picture (BP) P2 is forbidden</description> <reference> <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page> </reference> <assert test="{!tags.tag[name=InkNames]}">InkNames for a Binary picture (BP) TIFF/IT P2 file is forbidden</assert> </rule> <rule id="TIFF-IT-BP-P2-0007" context="ifd[filetype=bp]" level="error"> <title>TIFF/IT-BP/P2 NumberOfInks is forbidden</title> <description>NumberOfInks for Binary picture (BP) P2 is forbidden</description> <reference> <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page> </reference> <assert test="{!tags.tag[name=NumberOfInks]}">NumberOfInks for a Binary picture (BP) TIFF/IT P2 file is forbidden</assert> </rule> <rule id="TIFF-IT-BP-P2-0008" context="ifd[filetype=bp]" level="error"> <title>TIFF/IT-BP/P2 DotRange valid value</title> <description>If DotRange tag is used forBinary picture (BP) TIFF/IT P2 file, it must be 0,255</description> <reference> <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page> </reference> <assert test="{tags.tag[name=DotRange] == 0,255}">Invalid DotRange. If DotRange tag is used, it must be 0,255</assert> </rule> <rule id="TIFF-IT-BP-P2-0009" context="ifd[filetype=bp]" level="error"> <title>TIFF/IT-BP/P2 ColorSequence is forbidden</title> <description>ColorSequence for Binary picture (BP) P2 is forbidden</description> <reference> <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page> </reference> <assert test="{!tags.tag[name=ColorSequence]}">ColorSequence for a Binary picture (BP) TIFF/IT P2 file is forbidden</assert> </rule> <rule id="TIFF-IT-BP-P2-0010" context="ifd[filetype=bp]" level="error"> <title>TIFF/IT-BP/P2 ImageColorValue mandatory</title> <description>In a Binary picture (BP) file If ImageColorIndicator value is 1, ImageColorValue is mandatory. </description> <reference> <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page> </reference> <assert test="{tags.tag[name=ImageColorIndicator]!=1} || {tags.tag[name=ImageColorValue]}">ImageColorValue is mandatory. If ImageColorIndicator is 1 in Binary picture (BP) file.</assert> </rule> <rule id="TIFF-IT-BP-P2-0011" context="ifd[filetype=bp]" level="error"> <title>TIFF/IT-BP/P2 ImageColorValue forbidden</title> <description>In a Binary picture (BP) file If ImageColorIndicator value is 0, ImageColorValue is forbidden. </description> <reference> <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page> </reference> <assert test="{tags.tag[name=ImageColorIndicator] || {tags.tag[name=ImageColorIndicator]!=0} || {!tags.tag[name=ImageColorValue]}">ImageColorValue is forbidden if ImageColorIndicator is 0 in Binary picture (BP) file.</assert> </rule> <rule id="TIFF-IT-BP-P2-0012" context="ifd[filetype=bp]" level="error"> <title>TIFF/IT-BP/P2 BackgroundColorValue mandatory</title> <description>In a Binary picture (BP) file If BackgroundColorIndicator value is 1, BackgroundColorValue is mandatory. </description> <reference> <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page> </reference> <assert test="{tags.tag[name=BackgroundColorIndicator]!=1} || {tags.tag[name=BackgroundColorValue]}">BackgroundColorValue is mandatory. If BackgroundColorIndicator is 1 in Binary picture (BP) file.</assert> </rule> <rule id="TIFF-IT-BP-P2-0013" context="ifd[filetype=bp]" level="error"> <title>TIFF/IT-BP/P2 BackgroundColorValue forbidden</title> <description>In a Binary picture (BP) file If BackgroundColorIndicator value is 0, BackgroundColorValue is forbidden. </description> <reference> <section>Section 7.5.3: TIFF/IT-HC, TIFF/IT-HC/P1 and TIFF/IT-HC/P2 encoding</section><page>34</page> </reference> <assert test="{tags.tag[name=BackgroundColorIndicator] || {tags.tag[name=BackgroundColorIndicator]!=0} || {!tags.tag[name=BackgroundColorValue]}">BackgroundColorValue is forbidden if BackgroundColorIndicator is 0 in Binary picture (BP) file.</assert> </rule> <rule id="TIFF-IT-BP-P2-0014" context="ifd[filetype=bp]" level="error"> <title>TIFF/IT-BP/P2 CMYKEquivalent is forbidden</title> <description>CMYKEquivalent for Binary picture (BP) P2 is forbidden</description> <reference> <section>Section 7.7.3: TIFF/IT-BP, TIFF/IT-BP/P1 and TIFF/IT-BP/P2 encoding</section><page>38</page> </reference> <assert test="{!tags.tag[name=CMYKEquivalent]}">CMYKEquivalent for a Binary picture (BP) TIFF/IT P2 file is forbidden</assert> </rule> </rules> <rules id="TIFF-IT-SD"> <title>Screened data image (SD) file</title> <description>The pixel structure of screened data image files is described by colour interleaving (also called planar format). All lines of one colour (separation) are followed by all lines of the next colour. The order of planes of colour is defined by PhotometricInterpretation or ColorSequence. The data stream indicates whether or not a dot is intended to be imaged at a particular position. The bits in the data stream function as a switch between imaged and unimaged points. Bitmap fill order is from most significant bit to least significant bit within the byte, the default TIFF 6.0 fill order. TIFF/IT-SD/P2 limits the field values to the default value, a single value or a small choice of values. TIFF/IT-SD/P2 also limits the usage of optional fields to the minimum required for reasonable interchange. TIFF/IT-SD/P2 is a simplified-image file format profile for screened data image (SD) data and can be considered a constrained subset of TIFF/IT-SD specifically intended for simpler implementation. NOTE TIFF/IT-SD/P2 files are not readable by typical TIFF 6.0 readers and neither can be written by TIFF 6.0 writers because of the non-traditional interpretations of some TIFF 6.0 fields and values (e.g., the combination of PhotometricInterpretation and BitsPerSample). It is possible to write filters for DTP applications that need to read and write TIFF/IT-SD/P2 files.filters for TIFF/IT-SD/P2, as a simplified profile, are easier to implement than for TIFF/IT-SD. </description> <rule id="TIFF-IT-SD-P2-0001" context="ifd[filetype=sd]" level="error"> <title>TIFF/IT-SD/P2 BitsPerSample valid values</title> <description>BitsPerSample Screened data image (SD) file must be 1</description> <reference> <section>Section 7.9.3: TIFF/IT-SD and TIFF/IT-SD/P2 encoding</section><page>41</page> </reference> <assert test="tags.tag[name=BitsPerSample] == 1}">Invalid BitsPerSample value. BitsPerSample should be 1</assert> </rule> <rule id="TIFF-IT-SD-P2-0002" context="ifd[filetype=sd]" level="error"> <title>TIFF/IT-SD/P2 Compression valid values </title> <description>Compression valid values for Screened data image (SD) file are: 1 = No compression 4 = CCITT Group 4 fax encoding 8 = Deflate ('Adobe-style')</description> <reference> <section>Section 7.9.3: TIFF/IT-SD and TIFF/IT-SD/P2 encoding</section><page>41</page> </reference> <assert test="{tags.tag[name=Compression] == 1} || {tags.tag[name=Compression] == 4} || {tags.tag[name=Compression] == 8}">Invalid Compression Screened data image (SD) file</assert> </rule> <rule id="TIFF-IT-SD-P2-0003" context="ifd[filetype=sd]" level="error"> <title>TIFF/IT-SD/P2 PhotometricInterpretation valid value</title> <description>PhotometricInterpretation valid value for Screened data image (SD) is CMYK (5)</description> <reference> <section>Section 7.9.3: TIFF/IT-SD and TIFF/IT-SD/P2 encoding</section><page>41</page> </reference> <assert test="{tags.tag[name=PhotometricInterpretation] == 5}">Invalid PhotometricInterpretation value, PhotometricInterpretation should be CMYK (5)</assert> </rule> <rule id="TIFF-IT-SD-P2-0004" context="ifd[filetype=sd]" level="error"> <title>TIFF/IT-SD/P2 SamplesPerPixel valid values</title> <description>SamplesPerPixel for Screened data image (SD) should be 1 or 4</description> <reference> <section>Section 7.9.3: TIFF/IT-SD and TIFF/IT-SD/P2 encoding</section><page>41</page> </reference> <assert test="{tags.tag[name=SamplesPerPixel] == 1} || {tags.tag[name=SamplesPerPixel] == 4}">Invalid SamplesPerPixel. SamplesPerPixel for Screened data image (SD) should be 1 or 4</assert> </rule> <rule id="TIFF-IT-SD-P2-0005" context="ifd[filetype=sd]" level="error"> <title>TIFF/IT-SD/P2 PlanarConfiguration valid value</title> <description>PlanarConfiguration for Screened data image (SD) should be 1 or 4</description> <reference> <section>Section 7.9.3: TIFF/IT-SD and TIFF/IT-SD/P2 encoding</section><page>41</page> </reference> <assert test="{tags.tag[name=PlanarConfiguration] == 2}">Invalid PlanarConfiguration. PlanarConfiguration for Screened data image (SD) should be 2</assert> </rule> <rule id="TIFF-IT-SD-P2-0006" context="ifd[filetype=sd]" level="error"> <title>TIFF/IT-SD/P2 InkSet valid values</title> <description>InkSet for a Screened data image (SD) file must be 1</description> <reference> <section>Section 7.9.3: TIFF/IT-SD and TIFF/IT-SD/P2 encoding</section><page>41</page> </reference> <assert test="tags.tag[name=InkSet] == 1}">Invalid InkSet value. InkSet should be 1</assert> </rule> <rule id="TIFF-IT-SD-P2-0007" context="ifd[filetype=sd]" level="error"> <title>TIFF/IT-SD/P2 NumberOfInks valid values</title> <description>NumberOfInks for a Screened data image (SD) file must be 4</description> <reference> <section>Section 7.9.3: TIFF/IT-SD and TIFF/IT-SD/P2 encoding</section><page>41</page> </reference> <assert test="tags.tag[name=NumberOfInks] == 4}">Invalid NumberOfInks value. NumberOfInks should be 4</assert> </rule> <rule id="TIFF-IT-SD-P2-0008" context="ifd[filetype=sd]" level="error"> <title>TIFF/IT-SD/P2 ColorSequence is forbidden</title> <description>ColorSequence for Screened data image (SD) P2 is forbidden</description> <reference> <section>Section 7.9.3: TIFF/IT-SD and TIFF/IT-SD/P2 encoding</section><page>41</page> </reference> <assert test="{!tags.tag[name=ColorSequence]}">ColorSequence Screened data image (SD) TIFF/IT P2 file is forbidden</assert> </rule> </rules> <rules id="TIFF-IT-FP-P2"> <title>Final page (FP) file</title> <description>Typically, a final page, ready for exposure on an output recorder, consists of more than one of the CT, MP, SD, LW, BL, BP and HC raster formats described in this International Standard. TIFF/IT-FP provides a mechanism for associating image files of the different types that make up a final page. By default, it is assumed that, for each image type, the page assembly processes have combined all the pageinput components of that data type into one output file: the single-component image file of that data type for the page, though this is a requirement only for both TIFF/IT-P1 and TIFF/IT-P2 conformance. The component-image files of a final page may be of any one of the TIFF/IT, TIFF/IT-P1, or TIFF/IT-P2 conformance levels. The final page is considered to be TIFF/IT-P1-conformant only if all of its component files are TIFF/IT-P1-conformant and its own fields are TIFF/IT-FP/P1-conformant as specified in 7.10.2.5. The final page is considered to be TIFF/IT-P2-conformant only if all of its component files are TIFF/IT-P1- or TIFF/IT-P2-conformant and its own fields are TIFF/IT-FP/P2-conformant as specified in 7.10.2.5.</description> <rule id="TIFF-IT-FP-P2-0001" context="ifd[filetype=fp]" level="error"> <title>TIFF/IT-FP/P2 NewSubfileType valid value</title> <description>NewSubfileType on Final page (FP) file should be bigger than 7</description> <reference> <section>Section 7.10.3: TIFF/IT-FP, TIFF/IT-FP and TIFF/IT-FP/P2 encoding</section><page>48</page> </reference> <assert test="{tags.tag[name=NewSubfileType] > 7}">Invalid NewSubfileType. NewSubfileType value on Final page (FP) file should be bigger than 7</assert> </rule> <rule id="TIFF-IT-FP-P2-0002" context="ifd[filetype=fp]" level="error" experimental="true"> <title>TIFF/IT-FP/P2 ImageWidth valid value</title> <description>ImageWidth on Final page (FP) file must be any value such that ImageWidth divided by XResolution equals the exact actual page width in ResolutionUnits.</description> <reference> <section>Section 7.10.3: TIFF/IT-FP, TIFF/IT-FP and TIFF/IT-FP/P2 encoding</section><page>48</page> </reference> <assert test="{tags.tag[name=ImageWidth] % {tags.tag[name=XResolution] == 0}">Invalid ImageWidth. ImageWidth value on Final page (FP)must be any value such that ImageWidth divided by XResolution equals the exact actual page width in ResolutionUnits</assert> </rule> <rule id="TIFF-IT-FP-P2-0003" context="ifd[filetype=fp]" level="error" experimental="true"> <title>TIFF/IT-FP/P2 ImageLength valid value</title> <description>ImageLength on Final page (FP) file must be any value such that ImageWidth divided by YResolution equals the exact actual page width in ResolutionUnits.</description> <reference> <section>Section 7.10.3: TIFF/IT-FP, TIFF/IT-FP and TIFF/IT-FP/P2 encoding</section><page>48</page> </reference> <assert test="{tags.tag[name=ImageLength] % {tags.tag[name=YResolution] == 0}">Invalid ImageLength. ImageLength value on Final page (FP)must be any value such that ImageLength divided by YResolution equals the exact actual page width in ResolutionUnits</assert> </rule> <rule id="TIFF-IT-FP-P2-0004" context="ifd[filetype=fp]" level="error" experimental="true"> <title>TIFF/IT-FP/P2 ImageDescription mandatory</title> <description>ImageDescription on Final page (FP) file is mandatory and must contain the name of the FP file at creation time, in order to facilitate identifying it in case of a subsequent rename.</description> <reference> <section>Section 7.10.3: TIFF/IT-FP, TIFF/IT-FP and TIFF/IT-FP/P2 encoding</section><page>48</page> </reference> <assert test="{tags.tag[name=ImageDescription]}">ImageDescription on Final page (FP) file is mandatory and must contain the name of the FP file at creation time, in order to facilitate identifying it in case of a subsequent rename</assert> </rule> <rule id="TIFF-IT-FP-P2-0005" context="ifd[filetype=fp]" level="error" experimental="true"> <title>TIFF/IT-FP/P2 PlanarConfiguration valid value</title> <description>PlanarConfiguration on Final page (FP) file must be chunky (1).</description> <reference> <section>Section 7.10.3: TIFF/IT-FP, TIFF/IT-FP and TIFF/IT-FP/P2 encoding</section><page>48</page> </reference> <assert test="{tags.tag[name=PlanarConfiguration] == 1}">Invalid PlanarConfiguration. PlanarConfiguration on Final page (FP) file should be chunky (1)</assert> </rule> </rules> </implementationCheckerObject>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy