Minor issue regarding Update#2...

Update 2: The PNG standard states that pallettes be 256 8-bit colours only, but apparently that is not always the case either.

That statement is slightly missleading. If you keep reading, you'll see that if your PNG includes a color pallette, then that pallette can contain at most 256 colors -- but you don't have to use a color pallette at all. PNG supports 5 distinct color types, including "truecolor and truecolor with alpha" in which case...

...the PLTE chunk is optional. If present, it provides a suggested set of from 1 to 256 colors to which the truecolor image can be quantized if the viewer cannot display truecolor directly.

BEGIN PURE SPECULATION...

Perhaps some tools (like GD, and the linux file command i was using) are incorrectly detecting the presence of a 256 color pallete as an indication of the PNG being "8-bit", when in fact it is a 24-bit (or greater) "true color" PNG.

(Of course -- since GD is clearly documented to only support 8-bit images, it might not even be trying to deal with the true color PNGs properly)


In reply to Re: Re: GD reducing pallete causes major problems. by hossman
in thread GD reducing pallete causes major problems. by r.joseph

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.