imagetruecolortopalette returns a max of 128 colors



Dear all,

I'm sure that im doing something wrong, but I can't imagine what!
My problem is the following:

I create an image using imagecreatetruecolor, and, after some
painting, I push the resulting image to the client in 256 colors:
imagetruecolortopalette($this->m_oIMG, false, 256);
header("Content-type: image/png");
if(!imagepng($this->m_oIMG)) echo("Error Creating Image!!!");

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.
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.

Any ideas? :)

Thx for your time,

Vegethalia.
.



Relevant Pages

  • Re: imagetruecolortopalette returns a max of 128 colors
    ... I'm sure that im doing something wrong, but I can't imagine what! ... I create an image using imagecreatetruecolor, and, after some ... I can't push the 24bit image because of the size, ... with the palette you want, and use imagecopy to copy into that image. ...
    (comp.lang.php)
  • Re: GOD=G_uv=NUDE DESCENDING A STAIRCASE
    ... The painting created a sensation. ... famous "stop motion" photographs entitled "Nude Descending ... even publicly acknowledged by Duchamp himself according to ... so you imagine it as a large dog.... ...
    (sci.physics.relativity)
  • Re: Thought Before Action.
    ... and bring them into existence through our thought and labour. ... I want you to create a great painting. ... > allowed to waste a drop of paint. ... Imagine a tenor taking tunes according to ...
    (comp.object)
  • Re: off line
    ... Good for you on not overdoing it! ... It is so tempting to push too hard with a ... move and I imagine even more so when one has waited for the move as long as ...
    (alt.support.arthritis)
  • Re: what are irish men really like?
    ... Just imagine me in the nip eating oranges while painting it. ... be honest would not be very far from what actually took place in the ...
    (soc.culture.irish)