You are here: Re: imagetruecolortopalette returns a max of 128 colors « PHP Programming Language « IT news, forums, messages
Re: imagetruecolortopalette returns a max of 128 colors

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация