<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi all,<br>
    <br>
    Just wanted to make sure that I'm doing this right before filing a
    bug:<br>
    <br>
    With MapServer 6.0.2 and master, I wanted to have an 8-bit PNG with
    the colours defined by a palette.&nbsp; In previous versions of
    MapServer, all I had to do was put<br>
    <br>
    &nbsp; FORMATOPTION "PALETTE_FORCE=TRUE"<br>
    &nbsp; FORMATOPTION
"PALETTE=/mnt/data1/mapsherpa_v3_demo_data/map/map_overlay/templates/palette_rgba.txt"<br>
    <br>
    in the OUTPUTFORMAT.&nbsp; When I did this in MapServer &gt;= 6, I got a
    very ugly output (looked like there was hardly any anti-aliasing
    happening).&nbsp; Looking in mapimageio.c around line 422, I discovered
    that I needed to also have FORMATOPTION "QUANTIZE_COLORS=&lt;a
    number greater than 0&gt;" in the OUTPUTFORMAT or no quantization
    would happen to add the required colours for anti-aliasing.<br>
    <br>
    The documentation for the AGG/PNG driver explicitely says that
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    &#8220;PALETTE_FORCE=on&#8221; is used to reduce image depth with a predefined
    palette. This option is incompatible with the previous quantization
    options.&nbsp; But this would seem to no longer be true.<br>
    <br>
    Is this a documentation error, or a problem in the mapimageio.c
    code?<br>
    <br>
    Thanks,<br>
    Christy<br>
    -- <br>
    <div class="moz-signature">Christy Nieman<br>
      GIS Technician<br>
      DM Solutions Group, Inc.<br>
      Email: <a class="moz-txt-link-abbreviated" href="mailto:cnieman@dmsolutions.ca">cnieman@dmsolutions.ca</a><br>
      Web: <a class="moz-txt-link-freetext" href="http://dmsolutions.ca">http://dmsolutions.ca</a><br>
    </div>
  </body>
</html>