in reply to GD Anti Aliasing

I think the key to getting Anti Alias to work is (from the docs):
When using palette-based images, be sure to allocate a broad spectrum +of colors in order to have sufficient colors for the antialiasing to +use
That is, if you also allocate:
my $grey = $gd->colorAllocate(130,130,130); my $grey1 = $gd->colorAllocate(32,32,32); my $grey2 = $gd->colorAllocate(64,64,64); my $grey3 = $gd->colorAllocate(190,190,190);
then you'll find that you get some Anti Aliasing. I'm not sure that you'll be able to actually *see* the difference, but a Digest::MD5 of the output files should reveal that the output has in fact changed. (At least that's what I'm finding on perl-5.8 on Win32.)

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: GD Anti Aliasing
by BrowserUk (Patriarch) on Jan 15, 2009 at 10:40 UTC
      All that will have changed is that you've added 4 entries to the palette.

      Oh ... why does the MD5 of the output png file then change ?

      Cheers,
      Rob