FAQ
On Wednesday, October 31, 2012 8:30:31 PM UTC-4, Nigel Tao wrote:

On my reading, the PNG spec isn't clear whether palette index values
outside of those defined by the PLTE chunk is an error, and if not,
what to do.
I think it's pretty clear:

Clause 11.2.3 PLTE palette
end of 5th paragraph:
It is permissible to have fewer entries than the bit depth would allow. In
that case, any out-of-range pixel value found in the image data is an error.

Clause 13.2 Error handling, second paragraph, item 2:
Recover from the error, if possible; otherwise fail gracefully.

Glenn

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 9 of 10 | next ›
Discussion Overview
groupgolang-dev @
categoriesgo
postedNov 1, '12 at 12:30a
activeNov 2, '12 at 2:30a
posts10
users3
websitegolang.org

3 users in discussion

Nigel Tao: 6 posts R: 3 posts Glennrp: 1 post

People

Translate

site design / logo © 2022 Grokbase