0N/A<!
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2362N/ACopyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved. 0N/ADO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/AThis code is free software; you can redistribute it and/or modify it 0N/Aunder the terms of the GNU General Public License version 2 only, as 2362N/Apublished by the Free Software Foundation. Oracle designates this 0N/Aparticular file as subject to the "Classpath" exception as provided 2362N/Aby Oracle in the LICENSE file that accompanied this code. 0N/AThis code is distributed in the hope that it will be useful, but WITHOUT 0N/AANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/AFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/Aversion 2 for more details (a copy is included in the LICENSE file that 0N/Aaccompanied this code). 0N/AYou should have received a copy of the GNU General Public License version 0N/A2 along with this work; if not, write to the Free Software Foundation, 0N/AInc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2365N/APlease contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A<
title>PNG Metadata Format Specification</
title>
0N/A<
body bgcolor="white">
0N/APNG Metadata Format Specification
0N/AThe PNG native format encodes the complete contents of a PNG file
0N/Achunk by chunk, except for the IDAT chunks that contain the actual
0N/Aimage data. Chunks that are not defined in the PNG 1.2 specification
0N/Aare stored under the <
code>UnknownChunks</
code> element. Note that it
0N/Ais the responsibility of application software to implement the rules
0N/Afor PNG readers, writers, and editors (<
i>
e.g.</
i>, the rules
0N/Aconcerning unsafe-to-copy chunks) described in the PNG specification.
0N/AThe Image I/O library is not, in and of itself, a PNG reader, writer,
0N/Aor editor in the sense of the specification. Rather, it is a tool
0N/Athat may be used to build PNG readers, writers, and editors.
0N/AThe image's actual width, height, bit depth, and color type will
0N/Aoverride any values passed to the writer via metadata, with one
0N/Aexception. If the image has an <
code>IndexColorModel</
code>, the
0N/Acolor table entries will be checked to determine if they form a
0N/Auniform grayscale ramp. If so, the image will normally be encoded
0N/Ausing as grayscale instead of palette color. However, if the color
0N/Atype set in the metadata is "Palette", palette color will be used.
0N/AIf no metadata is supplied when encoding an image, the header is
0N/Ainitialized from the image being encoded, and no optional chunks are
0N/AThe semantics of the standard chunks are described in the <
A 0N/ANote that there are some restrictions on which chunks may appear
0N/Afor each color type. In particular,
0N/A <
li>A <
code>PLTE</
code> chunk may not appear in a <
code>Gray</
code>
0N/Aor <
code>GrayAlpha</
code> image
0N/A <
li><
code>hIST</
code> and <
code>tRNS</
code> chunks require a prior
0N/A<
code>PLTE</
code> chunk
0N/A <
li>A <
code>tRNS</
code> chunk may not appear in
0N/A<
code>GrayAlpha</
code> and <
code>RGBA</
code> images
0N/AThe child nodes of the <
code>bKGD</
code>, <
code>sBIT</
code>, and
0N/A<
code>tRNS</
code> chunks must match the image's color type.
0N/ACertain chunks may meaningfully appear multiple times in a PNG file,
0N/Ain particular the text-related chunks. In order to simplify the
0N/Ametadata format, multiple instances of these chunks are consolidated
0N/Aunder a single parent node (<
i>
e.g.</
i>, the <
code>tEXt</
code> node),
0N/Awhich may have zero or more children (<
i>
e.g.</
i>,
0N/A<
code>tEXtEntry</
code> nodes). If no children are present, no chunk
0N/Awill be written. Similarly, unknown chunks are stored as children of
0N/Aa single <
code>UnknownChunks</
code> node.
0N/AIt is not possible to control the ordering of the chunks as they are
0N/Awritten, or to determine the order of the chunks in a file being read.
0N/A<!DOCTYPE "javax_imageio_png_1.0" [
0N/A <!ELEMENT "javax_imageio_png_1.0" (IHDR?, PLTE?, bKGD?, cHRM?,
0N/A gAMA?, hIST?, iCCP?, iTXt?, pHYS?, sBIT?, sPLT?, sRGB?, tEXt?,
0N/A tIME?, tRNS?, zTXt?, UnknownChunks?)>
0N/A <!ELEMENT "IHDR" EMPTY>
0N/A <!-- The IHDR chunk, containing the header -->
0N/A <!ATTLIST "IHDR" "width" #CDATA #REQUIRED>
0N/A <!-- The width of the image in pixels -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 1 (inclusive) -->
0N/A <!-- Max value: 2147483647 (inclusive) -->
0N/A <!ATTLIST "IHDR" "height" #CDATA #REQUIRED>
0N/A <!-- The height of the image in pixels -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 1 (inclusive) -->
0N/A <!-- Max value: 2147483647 (inclusive) -->
0N/A <!ATTLIST "IHDR" "bitDepth" ("1" | "2" | "4" | "8" | "16")
0N/A <!-- The bit depth of the image samples -->
0N/A <!ATTLIST "IHDR" "colorType" ("Grayscale" | "RGB" | "Palette" |
0N/A "GrayAlpha" | "RGBAlpha") #REQUIRED>
0N/A <!-- The color type of the image -->
0N/A <!ATTLIST "IHDR" "compressionMethod" ("deflate") #REQUIRED>
0N/A <!-- The compression used for image data, always "deflate" -->
0N/A <!ATTLIST "IHDR" "filterMethod" ("adaptive") #REQUIRED>
0N/A <!-- The filtering method used for compression, always "adaptive" -->
0N/A <!ATTLIST "IHDR" "interlaceMethod" ("none" | "adam7") #REQUIRED>
0N/A <!-- The interlacing method, "none" or "adam7" -->
0N/A <!ELEMENT "PLTE" (PLTEEntry)*>
0N/A <!-- The PLTE chunk, containing the palette -->
0N/A <!-- Min children: 1 -->
0N/A <!-- Max children: 256 -->
0N/A <!ELEMENT "PLTEEntry" EMPTY>
0N/A <!-- A palette entry -->
0N/A <!ATTLIST "PLTEEntry" "index" #CDATA #REQUIRED>
0N/A <!-- The index of a palette entry -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ATTLIST "PLTEEntry" "red" #CDATA #REQUIRED>
0N/A <!-- The red value of a palette entry -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ATTLIST "PLTEEntry" "green" #CDATA #REQUIRED>
0N/A <!-- The green value of a palette entry -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ATTLIST "PLTEEntry" "blue" #CDATA #REQUIRED>
0N/A <!-- The blue value of a palette entry -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ELEMENT "bKGD" (bKGD_Grayscale | bKGD_RGB | bKGD_Palette)>
0N/A <!-- The bKGD chunk, containing the background color -->
0N/A <!ELEMENT "bKGD_Grayscale" EMPTY>
0N/A <!-- A grayscale background color, for Gray and GrayAlpha images -->
0N/A <!ATTLIST "bKGD_Grayscale" "gray" #CDATA #REQUIRED>
0N/A <!-- A gray value to be used as a background -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 65535 (inclusive) -->
0N/A <!ELEMENT "bKGD_RGB" EMPTY>
0N/A <!-- An RGB background color, for RGB and RGBAlpha images -->
0N/A <!ATTLIST "bKGD_RGB" "red" #CDATA #REQUIRED>
0N/A <!-- A red value to be used as a background -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 65535 (inclusive) -->
0N/A <!ATTLIST "bKGD_RGB" "green" #CDATA #REQUIRED>
0N/A <!-- A green value to be used as a background -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 65535 (inclusive) -->
0N/A <!ATTLIST "bKGD_RGB" "blue" #CDATA #REQUIRED>
0N/A <!-- A blue value to be used as a background -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 65535 (inclusive) -->
0N/A <!ELEMENT "bKGD_Palette" EMPTY>
0N/A <!-- A background palette index -->
0N/A <!ATTLIST "bKGD_Palette" "index" #CDATA #REQUIRED>
0N/A <!-- A palette index to be used as a background -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ELEMENT "cHRM" EMPTY>
0N/A <!-- The cHRM chunk, containing color calibration -->
0N/A <!ATTLIST "cHRM" "whitePointX" #CDATA #REQUIRED>
0N/A <!-- The CIE x coordinate of the white point, multiplied by 1e5 -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 65535 (inclusive) -->
0N/A <!ATTLIST "cHRM" "whitePointY" #CDATA #REQUIRED>
0N/A <!-- The CIE y coordinate of the white point, multiplied by 1e5 -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 65535 (inclusive) -->
0N/A <!ATTLIST "cHRM" "redX" #CDATA #REQUIRED>
0N/A <!-- The CIE x coordinate of the red primary, multiplied by 1e5 -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 65535 (inclusive) -->
0N/A <!ATTLIST "cHRM" "redY" #CDATA #REQUIRED>
0N/A <!-- The CIE y coordinate of the red primary, multiplied by 1e5 -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 65535 (inclusive) -->
0N/A <!ATTLIST "cHRM" "greenX" #CDATA #REQUIRED>
0N/A <!-- The CIE x coordinate of the green primary, multiplied by 1e5 -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 65535 (inclusive) -->
0N/A <!ATTLIST "cHRM" "greenY" #CDATA #REQUIRED>
0N/A <!-- The CIE y coordinate of the green primary, multiplied by 1e5 -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 65535 (inclusive) -->
0N/A <!ATTLIST "cHRM" "blueX" #CDATA #REQUIRED>
0N/A <!-- The CIE x coordinate of the blue primary, multiplied by 1e5 -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 65535 (inclusive) -->
0N/A <!ATTLIST "cHRM" "blueY" #CDATA #REQUIRED>
0N/A <!-- The CIE y coordinate of the blue primary, multiplied by 1e5 -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 65535 (inclusive) -->
0N/A <!ELEMENT "gAMA" EMPTY>
0N/A <!-- The gAMA chunk, containing the image gamma -->
0N/A <!ATTLIST "gAMA" "value" #CDATA #REQUIRED>
0N/A <!-- The image gamma, multiplied by 1e5 -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 2147483647 (inclusive) -->
0N/A <!ELEMENT "hIST" (hISTEntry)*>
0N/A <!-- The hIST chunk, containing histogram information -->
0N/A <!-- Min children: 1 -->
0N/A <!-- Max children: 256 -->
0N/A <!ELEMENT "hISTEntry" EMPTY>
0N/A <!-- A histogram entry -->
0N/A <!ATTLIST "hISTEntry" "index" #CDATA #REQUIRED>
0N/A <!-- The palette index of this histogram entry -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ATTLIST "hISTEntry" "value" #CDATA #REQUIRED>
0N/A <!-- The frequency of this histogram entry -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 65535 (inclusive) -->
0N/A <!ELEMENT "iCCP" EMPTY>
0N/A <!-- The iCCP chunk, containing an ICC color profile -->
0N/A <!-- User object: array of byte -->
0N/A <!-- Min length: 0 -->
0N/A <!-- Max length: 2147483647 -->
0N/A <!ATTLIST "iCCP" "profileName" #CDATA #REQUIRED>
0N/A <!-- The name of this ICC profile -->
0N/A <!-- Data type: String -->
0N/A <!ATTLIST "iCCP" "compressionMethod" ("deflate") #REQUIRED>
0N/A <!-- The compression method used to store this ICC profile -->
0N/A <!ELEMENT "iTXt" (iTXtEntry)*>
0N/A <!-- The iTXt chunk, containing internationalized text -->
0N/A <!-- Min children: 1 -->
0N/A <!-- Max children: 2147483647 -->
0N/A <!ELEMENT "iTXtEntry" EMPTY>
0N/A <!-- A localized text entry -->
0N/A <!ATTLIST "iTXtEntry" "keyword" #CDATA #REQUIRED>
0N/A <!-- The keyword -->
0N/A <!-- Data type: String -->
0N/A <!ATTLIST "iTXtEntry" "compressionFlag" ("TRUE" | "FALSE")
0N/A <!ATTLIST "iTXtEntry" "compressionMethod" #CDATA #REQUIRED>
0N/A <!-- The compression method used to store this iTXt entry -->
0N/A <!-- Data type: String -->
0N/A <!ATTLIST "iTXtEntry" "languageTag" #CDATA #REQUIRED>
0N/A <!-- The ISO tag describing the language this iTXt entry -->
0N/A <!-- Data type: String -->
0N/A <!ATTLIST "iTXtEntry" "translatedKeyword" #CDATA #REQUIRED>
0N/A <!-- The translated keyword for iTXt entry -->
0N/A <!-- Data type: String -->
0N/A <!ATTLIST "iTXtEntry" "text" #CDATA #REQUIRED>
0N/A <!-- The localized text -->
0N/A <!-- Data type: String -->
0N/A <!ELEMENT "pHYS" EMPTY>
0N/A <!-- The pHYS chunk, containing the pixel size and aspect ratio -->
0N/A <!ATTLIST "pHYS" "pixelsPerUnitXAxis" #CDATA #REQUIRED>
0N/A <!-- The number of horizontal pixels per unit, multiplied by 1e5 -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 2147483647 (inclusive) -->
0N/A <!ATTLIST "pHYS" "pixelsPerUnitYAxis" #CDATA #REQUIRED>
0N/A <!-- The number of vertical pixels per unit, multiplied by 1e5 -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 2147483647 (inclusive) -->
0N/A <!ATTLIST "pHYS" "unitSpecifier" ("unknown" | "meter") #REQUIRED>
0N/A <!-- The unit specifier for this chunk (
i.e., meters) -->
0N/A <!ELEMENT "sBIT" (sBIT_Grayscale | sBIT_GrayAlpha | sBIT_RGB |
0N/A sBIT_RGBAlpha | sBIT_Palette)>
0N/A <!-- The sBIT chunk, containing significant bit information -->
0N/A <!ELEMENT "sBIT_Grayscale" EMPTY>
0N/A <!-- Significant bit information for gray samples -->
0N/A <!ATTLIST "sBIT_Grayscale" "gray" #CDATA #REQUIRED>
0N/A <!-- The number of significant bits of the gray samples -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ELEMENT "sBIT_GrayAlpha" EMPTY>
0N/A <!-- Significant bit information for gray and alpha samples -->
0N/A <!ATTLIST "sBIT_GrayAlpha" "gray" #CDATA #REQUIRED>
0N/A <!-- The number of significant bits of the gray samples -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ATTLIST "sBIT_GrayAlpha" "alpha" #CDATA #REQUIRED>
0N/A <!-- The number of significant bits of the alpha samples -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ELEMENT "sBIT_RGB" EMPTY>
0N/A <!-- Significant bit information for RGB samples -->
0N/A <!ATTLIST "sBIT_RGB" "red" #CDATA #REQUIRED>
0N/A <!-- The number of significant bits of the red samples -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ATTLIST "sBIT_RGB" "green" #CDATA #REQUIRED>
0N/A <!-- The number of significant bits of the green samples -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ATTLIST "sBIT_RGB" "blue" #CDATA #REQUIRED>
0N/A <!-- The number of significant bits of the blue samples -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ELEMENT "sBIT_RGBAlpha" EMPTY>
0N/A <!-- Significant bit information for RGBA samples -->
0N/A <!ATTLIST "sBIT_RGBAlpha" "red" #CDATA #REQUIRED>
0N/A <!-- The number of significant bits of the red samples -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ATTLIST "sBIT_RGBAlpha" "green" #CDATA #REQUIRED>
0N/A <!-- The number of significant bits of the green samples -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ATTLIST "sBIT_RGBAlpha" "blue" #CDATA #REQUIRED>
0N/A <!-- The number of significant bits of the blue samples -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ATTLIST "sBIT_RGBAlpha" "alpha" #CDATA #REQUIRED>
0N/A <!-- The number of significant bits of the alpha samples -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ELEMENT "sBIT_Palette" EMPTY>
0N/A <!-- Significant bit information for RGB palette entries -->
0N/A <!ATTLIST "sBIT_Palette" "red" #CDATA #REQUIRED>
0N/A <!-- The number of significant bits of the red palette entries -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ATTLIST "sBIT_Palette" "green" #CDATA #REQUIRED>
0N/A <!-- The number of significant bits of the green palette entries -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ATTLIST "sBIT_Palette" "blue" #CDATA #REQUIRED>
0N/A <!-- The number of significant bits of the blue palette entries -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ELEMENT "sPLT" (sPLTEntry)*>
0N/A <!-- The sPLT chunk, containing a suggested palette -->
0N/A <!-- Min children: 1 -->
0N/A <!-- Max children: 256 -->
0N/A <!ELEMENT "sPLTEntry" EMPTY>
0N/A <!-- A suggested palette entry -->
0N/A <!ATTLIST "sPLTEntry" "index" #CDATA #REQUIRED>
0N/A <!-- The index of a suggested palette entry -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ATTLIST "sPLTEntry" "red" #CDATA #REQUIRED>
0N/A <!-- The red value of a suggested palette entry -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ATTLIST "sPLTEntry" "green" #CDATA #REQUIRED>
0N/A <!-- The green value of a suggested palette entry -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ATTLIST "sPLTEntry" "blue" #CDATA #REQUIRED>
0N/A <!-- The blue value of a suggested palette entry -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ATTLIST "sPLTEntry" "alpha" #CDATA #REQUIRED>
0N/A <!-- The blue value of a suggested palette entry -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ELEMENT "sRGB" EMPTY>
0N/A <!-- The sRGB chunk, containing rendering intent information -->
0N/A <!ATTLIST "sRGB" "renderingIntent" ("Perceptual" |
0N/A "Relative colorimetric" | "Saturation" |
0N/A "Absolute colorimetric") #REQUIRED>
0N/A <!-- The rendering intent -->
0N/A <!ELEMENT "tEXt" (tEXtEntry)*>
0N/A <!-- The tEXt chunk, containing text -->
0N/A <!-- Min children: 1 -->
0N/A <!-- Max children: 2147483647 -->
0N/A <!ELEMENT "tEXtEntry" EMPTY>
0N/A <!-- A text entry -->
0N/A <!ATTLIST "tEXtEntry" "keyword" #CDATA #REQUIRED>
0N/A <!-- The keyword -->
0N/A <!-- Data type: String -->
0N/A <!ATTLIST "tEXtEntry" "value" #CDATA #REQUIRED>
0N/A <!-- The text -->
0N/A <!-- Data type: String -->
0N/A <!ELEMENT "tIME" EMPTY>
0N/A <!-- The tIME chunk, containing the image modification time -->
0N/A <!ATTLIST "tIME" "year" #CDATA #REQUIRED>
0N/A <!-- The year when the image was last modified -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 65535 (inclusive) -->
0N/A <!ATTLIST "tIME" "month" #CDATA #REQUIRED>
0N/A <!-- The month when the image was last modified, 1 = January -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 1 (inclusive) -->
0N/A <!-- Max value: 12 (inclusive) -->
0N/A <!ATTLIST "tIME" "day" #CDATA #REQUIRED>
0N/A <!-- The day of the month when the image was last modified -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 1 (inclusive) -->
0N/A <!-- Max value: 31 (inclusive) -->
0N/A <!ATTLIST "tIME" "hour" #CDATA #REQUIRED>
0N/A <!-- The hour when the image was last modified -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 23 (inclusive) -->
0N/A <!ATTLIST "tIME" "minute" #CDATA #REQUIRED>
0N/A <!-- The minute when the image was last modified -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 59 (inclusive) -->
0N/A <!ATTLIST "tIME" "second" #CDATA #REQUIRED>
0N/A <!-- The second when the image was last modified, 60 = leap second -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 60 (inclusive) -->
0N/A <!ELEMENT "tRNS" (tRNS_Grayscale | tRNS_RGB | tRNS_Palette)>
0N/A <!-- The tRNS chunk, containing transparency information -->
0N/A <!ELEMENT "tRNS_Grayscale" EMPTY>
0N/A <!-- A grayscale value that should be considered transparent -->
0N/A <!ATTLIST "tRNS_Grayscale" "gray" #CDATA #REQUIRED>
0N/A <!-- The gray value to be considered transparent -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 65535 (inclusive) -->
0N/A <!ELEMENT "tRNS_RGB" EMPTY>
0N/A <!-- An RGB value that should be considered transparent -->
0N/A <!ATTLIST "tRNS_RGB" "red" #CDATA #REQUIRED>
0N/A <!-- The red value to be considered transparent -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 65535 (inclusive) -->
0N/A <!ATTLIST "tRNS_RGB" "green" #CDATA #REQUIRED>
0N/A <!-- The green value to be considered transparent -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 65535 (inclusive) -->
0N/A <!ATTLIST "tRNS_RGB" "blue" #CDATA #REQUIRED>
0N/A <!-- The blure value to be considered transparent -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 65535 (inclusive) -->
0N/A <!ELEMENT "tRNS_Palette" EMPTY>
0N/A <!-- A palette index that should be considered transparent -->
0N/A <!ATTLIST "tRNS_Palette" "index" #CDATA #REQUIRED>
0N/A <!-- A palette index to be considered transparent -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ATTLIST "tRNS_Palette" "alpha" #CDATA #REQUIRED>
0N/A <!-- The transparency associated with the palette entry -->
0N/A <!-- Data type: Integer -->
0N/A <!-- Min value: 0 (inclusive) -->
0N/A <!-- Max value: 255 (inclusive) -->
0N/A <!ELEMENT "zTXt" (zTXtEntry)*>
0N/A <!-- The zTXt chunk, containing compressed text -->
0N/A <!-- Min children: 1 -->
0N/A <!-- Max children: 2147483647 -->
0N/A <!ELEMENT "zTXtEntry" EMPTY>
0N/A <!-- A compressed text entry -->
0N/A <!-- User object: array of byte -->
0N/A <!-- Min length: 0 -->
0N/A <!-- Max length: 2147483647 -->
0N/A <!ATTLIST "zTXtEntry" "keyword" #CDATA #REQUIRED>
0N/A <!-- The keyword -->
0N/A <!-- Data type: String -->
0N/A <!ATTLIST "zTXtEntry" "compressionMethod" ("deflate")
0N/A <!-- The compressed text -->
0N/A <!ELEMENT "UnknownChunks" (UnknownChunk)*>
0N/A <!-- A set of unknown chunks -->
0N/A <!-- Min children: 1 -->
0N/A <!-- Max children: 2147483647 -->
0N/A <!ELEMENT "UnknownChunk" EMPTY>
0N/A <!-- Unknown chunk data stored as a byte array -->
0N/A <!-- User object: array of byte -->
0N/A <!-- Min length: 0 -->
0N/A <!-- Max length: 2147483647 -->
0N/A <!ATTLIST "UnknownChunk" "type" #CDATA #REQUIRED>
0N/A <!-- The 4-character type of the unknown chunk -->
0N/A <!-- Data type: String -->