<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <pre>Forcing paletted images using QUANTIZE_FORCE=on and decreasing the number of colors with QUANTIZE_COLORS can also help:

 FORMATOPTION "QUANTIZE_FORCE=on"
 FORMATOPTION "QUANTIZE_COLORS=200"
<span class="s">
</span></pre>
    <div class="moz-cite-prefix">Le 18/05/2021 à 19:30, Seth G a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:0ebd32c2-993c-4d63-9d0b-8df4f9af55dc@www.fastmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <title></title>
      <style type="text/css">#qt p.qt-MsoNormal{margin-top:0in;margin-right:0in;margin-left:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:"Calibri", sans-serif;}#qt a:link{color:blue;text-decoration-line:underline;text-decoration-style:solid;text-decoration-color:currentcolor;text-decoration-thickness:auto;}p.MsoNormal,p.MsoNoSpacing{margin:0}</style>
      <div>I've not used it but the following might help for the AGG/PNG
        driver:<br>
      </div>
      <div><br>
      </div>
      <div>FORMATOPTION "COMPRESSION=9"<br>
      </div>
      <div><br>
      </div>
      <div><a href="https://mapserver.org/mapfile/outputformat.html"
          moz-do-not-send="true">https://mapserver.org/mapfile/outputformat.html</a><br>
      </div>
      <div><br>
      </div>
      <div>The default is 6. <br>
      </div>
      <div><br>
      </div>
      <div id="sig62266145">
        <div class="signature">--<br>
        </div>
        <div class="signature">web:<a class="moz-txt-link-freetext" href="http://geographika.co.uk">http://geographika.co.uk</a><br>
        </div>
        <div class="signature">twitter: @geographika<br>
        </div>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>On Tue, May 18, 2021, at 7:16 PM, Basques, Bob (CI-StPaul)
        wrote:<br>
      </div>
      <blockquote type="cite" id="qt" style="">
        <div class="qt-WordSection1">
          <p class="qt-MsoNormal">All,<br>
          </p>
          <p class="qt-MsoNormal"> <br>
          </p>
          <p class="qt-MsoNormal">I know the GD stuff has been a long
            running conversation in the MapServer realm, but does this
            indicate that maybe discussing something on adding GD back
            in might be prudent?  Or are there methods to get down to
            these previous files sizes with the newer approaches?<br>
          </p>
          <p class="qt-MsoNormal"> <br>
          </p>
          <p class="qt-MsoNormal">I have the same concerns related to
            image size from the performance side, and running on Mobile
            in our case.<br>
          </p>
          <p class="qt-MsoNormal"> <br>
          </p>
          <p class="qt-MsoNormal">Bobb<br>
          </p>
          <p class="qt-MsoNormal"> <br>
          </p>
          <p class="qt-MsoNormal"> <br>
          </p>
          <div
style="border-right-color:currentcolor;border-right-style:none;border-right-width:medium;border-bottom-color:currentcolor;border-bottom-style:none;border-bottom-width:medium;border-left-color:currentcolor;border-left-style:none;border-left-width:medium;border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;border-top-color:rgb(181,
            196,
223);border-top-style:solid;border-top-width:1pt;padding-top:3pt;padding-right:0in;padding-bottom:0in;padding-left:0in;">
            <p class="qt-MsoNormal" style="margin-left:0.5in;"><b><span
                  style="color:black;"><span class="size"
                    style="font-size:12pt;">From: </span></span></b><span
                style="color:black;"><span class="size"
                  style="font-size:12pt;">mapserver-users
                  <a class="moz-txt-link-rfc2396E" href="mailto:mapserver-users-bounces@lists.osgeo.org"><mapserver-users-bounces@lists.osgeo.org></a> on
                  behalf of Richard Greenwood
                  <a class="moz-txt-link-rfc2396E" href="mailto:richard.greenwood@gmail.com"><richard.greenwood@gmail.com></a><br>
                  <b>Date: </b>Tuesday, May 18, 2021 at 11:50 AM<br>
                  <b>To: </b><a class="moz-txt-link-rfc2396E" href="mailto:mapserver-users@lists.osgeo.org">"mapserver-users@lists.osgeo.org"</a>
                  <a class="moz-txt-link-rfc2396E" href="mailto:mapserver-users@lists.osgeo.org"><mapserver-users@lists.osgeo.org></a><br>
                  <b>Subject: </b>[mapserver-users] anti-aliasing (was
                  differing image size with different mapserver
                  versions)</span></span></p>
          </div>
          <div>
            <p class="qt-MsoNormal" style="margin-left:0.5in;"> <br>
            </p>
          </div>
          <table class="qt-MsoNormalTable"
            style="margin-left:0.5in;background-color:rgb(226, 247,
0);background-position-x:0%;background-position-y:0%;background-repeat:repeat;background-attachment:scroll;background-image:none;background-size:auto;background-origin:padding-box;background-clip:border-box;border-top-color:black;border-top-style:solid;border-top-width:1pt;border-right-color:black;border-right-style:solid;border-right-width:1pt;border-bottom-color:black;border-bottom-style:solid;border-bottom-width:1pt;border-left-color:black;border-left-style:solid;border-left-width:1pt;border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;"
            cellpadding="0" border="1">
            <tbody>
              <tr>
                <td
style="border-top-color:currentcolor;border-top-style:none;border-top-width:medium;border-right-color:currentcolor;border-right-style:none;border-right-width:medium;border-bottom-color:currentcolor;border-bottom-style:none;border-bottom-width:medium;border-left-color:currentcolor;border-left-style:none;border-left-width:medium;border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;padding-top:0.75pt;padding-right:0.75pt;padding-bottom:0.75pt;padding-left:0.75pt;">
                  <p class="qt-MsoNormal" style=""><b><span
                        style="color:rgb(255, 51, 51);"><span
                          class="font"
                          style="font-family:"Calibri",
                          sans-serif;">Think Before You Click: </span></span></b><span
                      style="color:black;">This email originated <b><span
                          style=""><span class="font"
                            style="font-family:"Calibri",
                            sans-serif;">outside </span></span></b>our
                      organization.</span><br>
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
          <p class="qt-MsoNormal" style="margin-left:0.5in;"> <br>
          </p>
          <div>
            <div>
              <p class="qt-MsoNormal" style="margin-left:0.5in;">Thanks
                to several helpful replies to my previous thread I know
                that the increased image size between MapServer 6 with
                the GD driver and MapServer 7 with the AGG driver is
                due to differences in anti-aliasing (and lack of) in the
                two drivers. (AGG <a
                  href="https://en.wikipedia.org/wiki/Anti-Grain_Geometry"
                  moz-do-not-send="true"> features anti-aliasing and
                  sub-pixel resolution</a>).<br>
              </p>
              <div>
                <p class="qt-MsoNormal" style="margin-left:0.5in;"> <br>
                </p>
              </div>
              <div>
                <p class="qt-MsoNormal" style="margin-left:0.5in;">Gamma
                  setting from 0-1 affects the size of a filled polygon
                  layer by a factor of almost 3x. But gamma has no
                  effect on text, lines, and polygon outlines. So images
                  comprised of these types of features are approximately
                  2x larger with the AGG/PNG8 driver than with the
                  GD/GIF driver. <br>
                </p>
              </div>
              <div>
                <p class="qt-MsoNormal" style="margin-left:0.5in;"> <br>
                </p>
              </div>
              <div>
                <p class="qt-MsoNormal" style="margin-left:0.5in;">Where
                  else should I be looking to reduce my images sizes? I
                  serve rural areas with poor internet so in my case,
                  smaller image sizes are more important than
                  higher quality images.<br>
                </p>
              </div>
              <div>
                <p class="qt-MsoNormal" style="margin-left:0.5in;"> <br>
                </p>
              </div>
              <div>
                <p class="qt-MsoNormal" style="margin-left:0.5in;">Thanks,<br>
                </p>
              </div>
              <div>
                <p class="qt-MsoNormal" style="margin-left:0.5in;">Rich<br>
                </p>
              </div>
              <div>
                <div>
                  <p class="qt-MsoNormal" style="margin-left:0.5in;"> <br>
                  </p>
                </div>
                <p class="qt-MsoNormal" style="margin-left:0.5in;">--<br>
                </p>
                <div>
                  <div>
                    <p class="qt-MsoNormal" style="margin-left:0.5in;"><br>
                    </p>
                    <div>Richard W. Greenwood, PLS<br>
                    </div>
                    <div> <a href="http://www.greenwoodmap.com"
                        target="_blank" moz-do-not-send="true">www.greenwoodmap.com</a><br>
                    </div>
                    <p><br>
                    </p>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div>_______________________________________________<br>
        </div>
        <div>mapserver-users mailing list<br>
        </div>
        <div><a href="mailto:mapserver-users%40lists.osgeo.org"
            moz-do-not-send="true">mapserver-users@lists.osgeo.org</a><br>
        </div>
        <div><a
            href="https://lists.osgeo.org/mailman/listinfo/mapserver-users"
            moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
        </div>
        <div><br>
        </div>
      </blockquote>
      <div><br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>