Re: [MAPSERVER-USERS] help! agg palette quantize algorithm imperfection

2008-06-06 Thread BrainDrain
$? You're kidding)) Anyway, thanks for advise. Will try. And what about agg rgba mode (bug, invalid color interpretation (inverting?) or something like that)? When this problem will be fixed? I need it, because I want to use map transparency (only rgba mode) to combine with google map layer in op

Re: [MAPSERVER-USERS] help! agg palette quantize algorithm imperfection

2008-06-06 Thread Stephen Woodbridge
Hey, that's what they pay you the BIG BUCKS for! :) Write a perl/bash/{your favorite} script to grab all the COLOR lines from you mapfile and reformat the r g b to r,g,b in you palette file. I have a few hundred symbols in my symbol library, but I only use about 10 of them regularly so I made

Re: [MAPSERVER-USERS] help! agg palette quantize algorithm imperfection

2008-06-06 Thread BrainDrain
Thanks, i already read about preparing palette index file & I see 2 obstacles: 1) I need to monitor my map file (big size) to keep relevant my palette file. It is inflexible to extract rgb colors used in pixmap symbols (hundreds, updatable). Can I use html palette for ex. (or any other 'universal'

Re: [MAPSERVER-USERS] help! agg palette quantize algorithm imperfection

2008-06-06 Thread Paul Spencer
Use: OUTPUTFORMAT OUTPUTFORMAT NAME "AGG_Q" DRIVER "AGG/PNG" MIMETYPE "image/png; mode=8bit" IMAGEMODE RGB EXTENSION "png" FORMATOPTION "PALETTE_FORCE=TRUE" FORMATOPTION "PALETTE=/path/to/palette.txt" END where palette.txt is a text file with RGB tuples in the form: RRR,GGG,BBB

[MAPSERVER-USERS] help! agg palette quantize algorithm imperfection

2008-06-06 Thread BrainDrain
I use this output format in my map file: OUTPUTFORMAT NAME "AGG_Q" DRIVER "AGG/PNG" MIMETYPE "image/png; mode=8bit" IMAGEMODE RGB EXTENSION "png" FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=256" END but every time map draw called (or ma