in reply to GD reducing pallete causes major problems.
My advice is to use GD for schematic graphing and charting (limited pallettes), or for generating tiny thumbnails, but use something else if you need quality.
Updated: clarified that the starting PNG image was indeed 24-bit, re: hossman's response
Update 2: The PNG standard states that pallettes be 256 8-bit colours only, but apparently that is not always the case either.
Update 3: I don't see how the above is misleading, though I suppose it may be considered incomplete (but that's why I linked to the full document ;-). Certainly PNGs are not required to have pallettes, but if they do they can only hold up to 256 colours, and those colours are only 8-bits for each of red, green and blue. That's all I meant to say - honest! ;-)
More fodder to show your final line of speculation is correct: If you continue to read the GD docs, check out "What's new in version 1.6.1" and you will see that all non-pallette PNGs are pallettized "badly, by dithering them", and that surely must be the true root of this problem. Just below that you will see that version 1.6 of GD was the first to support PNGs, and then it was only PNGs with pallettes, so 1.6.1 was just a quick hack to accept a wider variety of PNGs.
--
I'd like to be able to assign to an luser
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: GD reducing pallete causes major problems.
by hossman (Prior) on Aug 11, 2002 at 00:16 UTC | |
|
Re: Re: GD reducing pallete causes major problems.
by hossman (Prior) on Aug 11, 2002 at 19:17 UTC | |
|
Re: Re: GD reducing pallete causes major problems.
by r.joseph (Hermit) on Aug 10, 2002 at 22:58 UTC | |
by r.joseph (Hermit) on Aug 10, 2002 at 23:05 UTC |