|
Posted by Tim Roberts on 01/03/08 07:19
Vegethalia <vegethalia@gmail.com> wrote:
>
>Anyway, you know why when you tell imagetrucolortopalette to use a
>certain number of colors (ie 64), it never uses as much? Is that a bug
>or just an nonperfect algorithm?
The beauty of a system like PHP is that you can download the source and
look at it yourself.
The process of identifying an "ideal" 8-bit palette for a true-color image
is surprisingly complicated. Most palettized displays don't actually have
256 colors available (a few dozen are almost always reserved for system
use), so perhaps they optimized it for 128. However, I'm just pulling that
from thin air.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Navigation:
[Reply to this message]
|