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 Vegethalia on 01/02/08 14:54

First of all, thx for your reply! :)

> >The problem is that the resulting image never contain more that 128
> >colors! I can't push the 24bit image because of the size, as the
> >images are pretty big.
>
> 24-bit images are only three times larger than 8-bit images.  The image on
> your page is only 150k bytes; 450k is not that big.
>

Uh... well that could be true if you work with 'raw' images, but PNG
images are compressed...
in fact, the previous image (2.450x812 pixels) as a PNG24 needs
870kbytes (and as a bmp uncompressed, almost 6megs!)


> >As you may imagine, the final image quality is quite horrible, for an
> >example,
> >http://eqsearchpro.pleyhades.com/ShowRecipe.php?item=8668&recipe=26059
> >save the image and open it with photoshop (for instance...), after
> >that, count the colors.
>
> I don't think that image looks bad.  If you want smooth coloring, than keep
> it as true color.

>
> The "imagetruecolortopalette" page in the PHP documentation mentions an
> alternative.  If you know which 256 colors you want, create an empty image
> with the palette you want, and use imagecopy to copy into that image.

Um I will try this and ill tell you the results.... :)

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?

Thx again,

Vegethalia.

 

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

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