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

437 color metadata should be before image data #439

Merged
merged 3 commits into from Mar 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
40 changes: 37 additions & 3 deletions index.html
Expand Up @@ -870,10 +870,44 @@ <h2>Color spaces</h2>
to be applied (see <a href="#C-GammaAppendix"></a>). However, color-aware applications will prefer one of the first three
methods, while color-unaware applications will typically ignore all four methods.</p>

<p><a>Gamma</a> correction is not applied to the alpha channel, if present. Alpha samples always represent a linear fraction
of full opacity.</p>
<p>Below is a list of color flags. If a single image is populated with multiple color flags, the uppermost chunk(s) in the
heirarchy should take precedence and the lower most chunk(s) should be ignored:</p>

<p>Mastering metadata may also be provided</p>
<table id="color-chunk-precendence" class="numbered simple">
<caption>
Color Chunk Priority
</caption>

<tr>
<th>Name</th>
<th>Priority</th>
</tr>

<tr>
<td><a href="#cICP-chunk" class="chunk">cICP</a></td>
<td>1</td>
</tr>

<tr>
<td><a class="chunk" href="#11iCCP">iCCP</a></td>
<td>2</td>
</tr>

<tr>
<td><span class="chunk" href="#11sRGB">sRGB</span></td>
<td>3</td>
</tr>

<tr>
<td><a class="chunk" href="#11cHRM">cHRM</a> and <a class="chunk" href="#11gAMA">gAMA</a></td>
<td>4</td>
</tr>
</table>

<p><a>Gamma</a> correction is not applied to the alpha channel, if present. Alpha samples are always full-range and represent
a linear fraction of full opacity.</p>

<p>Mastering metadata may also be provided.</p>
</section>
<!-- Maintain a fragment named "4Concepts.PNGImageTransformation" to preserve incoming links to it -->

Expand Down