Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harmonise references to color chunk precedence, fix #443 #444

Merged
merged 1 commit into from
Apr 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 22 additions & 35 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3339,8 +3339,9 @@ <h2><span class="chunk">cHRM</span> Primary chromaticities and white point</h2>
<p>The <span class="chunk">cHRM</span> chunk is allowed in all PNG datastreams, although it is of little value for
<a>greyscale</a> images.</p>

<p>An <a class="chunk" href="#11sRGB">sRGB</a>, <a class="chunk" href="#11iCCP">iCCP</a> or <a href="#cICP-chunk" class="chunk">cICP</a> chunk, when present and
recognized, overrides the <span class="chunk">cHRM</span> chunk.</p>
<p>This chunk is ignored
unless it is the <a href="#color-chunk-precendence">highest-precedence color chunk</a>
understood by the decoder.</p>
</section>
<!-- Maintain a fragment named "11gAMA" to preserve incoming links to it -->

Expand Down Expand Up @@ -3377,8 +3378,9 @@ <h2><span class="chunk">gAMA</span> Image gamma</h2>

<p>See <a href="#12Encoder-gamma-handling"></a> and <a href="#13Decoder-gamma-handling"></a> for more information.</p>

<p>An <a class="chunk" href="#srgb-standard-colour-space">sRGB</a>, <a class="chunk" href="#11iCCP">iCCP</a> or <a href="#cICP-chunk" class="chunk">cICP</a> chunk,
when present and recognized, overrides the <span class="chunk">gAMA</span> chunk.</p>
<p>This chunk is ignored
unless it is the <a href="#color-chunk-precendence">highest-precedence color chunk</a>
understood by the decoder.</p>
</section>
<!-- Maintain a fragment named "11iCCP" to preserve incoming links to it -->

Expand Down Expand Up @@ -3428,11 +3430,13 @@ <h2><span class="chunk">iCCP</span> Embedded ICC profile</h2>
for <a>greyscale</a> images (<a>color types</a> 0 and 4). A PNG encoder that writes the <span class="chunk">iCCP</span> chunk
is encouraged to also write <a class="chunk" href="#11gAMA">gAMA</a> and <a class="chunk" href="#11cHRM">cHRM</a> chunks
that approximate the ICC profile, to provide compatibility with applications that do not use the <span class=
"chunk">iCCP</span> chunk. When the <span class="chunk">iCCP</span> chunk is present, PNG decoders that recognize it and
are capable of color management shall ignore the <a class="chunk" href="#11gAMA">gAMA</a> and <a class="chunk" href=
"#11cHRM">cHRM</a> chunks and use the <span class="chunk">iCCP</span> chunk instead and interpret it according to
[[ICC]]. PNG decoders that are used in an environment that is incapable of full-fledged color management should use the
<a class="chunk" href="#11gAMA">gAMA</a> and <a class="chunk" href="#11cHRM">cHRM</a> chunks if present.</p>
"chunk">iCCP</span> chunk.</p>

<p>
This chunk is ignored
unless it is the <a href="#color-chunk-precendence">highest-precedence color chunk</a>
understood by the decoder.
</p>

<p>Unless a <a class="chunk" href="#cICP-chunk">cICP</a> chunk exists, a PNG datastream should contain at most one
embedded profile, whether specified explicitly with an <span class="chunk">iCCP</span> or implicitly with an <a class=
Expand Down Expand Up @@ -3677,12 +3681,11 @@ <h2 id="srgb-standard-colour-space"><span class="chunk">sRGB</span> Standard RGB
</tr>
</table>

<p>When the <span class="chunk">sRGB</span> chunk is present, it is recommended that decoders that recognize it and are
capable of color management ignore the <a class="chunk" href="#11gAMA">gAMA</a> and <a class="chunk" href=
"#11cHRM">cHRM</a> chunks and use the <span class="chunk">sRGB</span> chunk instead. Decoders that recognize the
<span class="chunk">sRGB</span> chunk but are not capable of color management are recommended to ignore the <a class=
"chunk" href="#11gAMA">gAMA</a> and <a class="chunk" href="#11cHRM">cHRM</a> chunks, and use the values given above as if
they had appeared in <a class="chunk" href="#11gAMA">gAMA</a> and <a class="chunk" href="#11cHRM">cHRM</a> chunks.</p>
<p>
This chunk is ignored
unless it is the <a href="#color-chunk-precendence">highest-precedence color chunk</a>
understood by the decoder.
</p>

<p>It is recommended that the <a class="chunk" href="#11sRGB">sRGB</a> and <a class="chunk" href="#11iCCP">iCCP</a>
chunks do not appear simultaneously in a PNG datastream.</p>
Expand Down Expand Up @@ -3788,26 +3791,10 @@ <h2><span class="chunk">cICP</span> Coding-independent code points for video sig
<p>The <span class="chunk">cICP</span> chunk MUST come before the <a class="chunk" href="#11PLTE">PLTE</a> and <a class=
"chunk" href="#11IDAT">IDAT</a> chunks.</p>

<p>When the <span class="chunk">cICP</span> chunk is present, decoders that recognize it SHALL ignore the following
chunks:</p>

<ul>
<li>
<a class="chunk" href="#11iCCP">iCCP</a>
</li>

<li>
<a class="chunk" href="#11gAMA">gAMA</a>
</li>

<li>
<a class="chunk" href="#11cHRM">cHRM</a>
</li>

<li>
<a class="chunk" href="#11sRGB">sRGB</a>
</li>
</ul>
<p>
This chunk, if understood by the decoder, is the
<a href="#color-chunk-precendence">highest-precedence color chunk</a>.
</p>


<aside class="example" id="ex-cICP-BT.2100-PQ-full">
Expand Down