<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>I think `WITH_GIF` is only used to read in GIF images (for symbols etc.)?<br></div><div><br></div><div>As Even wrote GDAL/GIF doesn't seem to work as an OUTPUTFORMAT. I get:<br></div><div><br></div><div><span style="color:rgb(0, 0, 0);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;-webkit-text-stroke-width:0px;white-space:normal;text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial;display:inline !important;float:none;"><span class="font" style="font-family:monospace;"><span class="size" style="font-size:13px;">msDrawMap(): Image handling error. Failed to draw layer named 'countries'. msOGRFileNextShape(): OGR error. OGR GetNextFeature() error'd. Check logs</span></span></span><br></div><div><span style="color:rgb(0, 0, 0);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;-webkit-text-stroke-width:0px;white-space:normal;text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial;display:inline !important;float:none;"><span class="font" style="font-family:monospace;"><span class="size" style="font-size:13px;"></span></span></span><br></div><div><br></div><div id="sig62266145"><div class="signature">--<br></div><div class="signature">web:<a href="https://geographika.net">https://geographika.net</a> & <a href="https://mapserverstudio.net">https://mapserverstudio.net</a><br></div><div class="signature">twitter: @geographika<br></div></div><div><br></div><div>On Fri, Sep 8, 2023, at 2:43 PM, Even Rouault wrote:<br></div><blockquote type="cite" id="qt" style=""><p>Philippe,<br></p><div class="qt-moz-cite-prefix">Le 08/09/2023 à 14:16, Philippe
      Ghesquiere via MapServer-dev a écrit :<br></div><blockquote type="cite" cite="mid:CAAes_OF6=rEzXh3CWW3TM74ROXHrSa31inF+=7+69GUwNq-0_Q@mail.gmail.com"><div dir="ltr"><div>Hi all,<br></div><div>I am a little bit confused with GIF support for WMS/WMTS
          services.<br></div><div>In several parts of the documentation, it is mentioned that
          GIF support is discarded with the end of the "GD library"
          support.<br></div><div><br></div><div>I noticed the compilation option in CMakelists.txt :<br></div><div>option(WITH_GIF "Enable GIF support (for PIXMAP loading)"
          ON)<br></div><div>I do not understand the "for PIXMAP loading" comment.<br></div><div><br></div><div>Anyway, our mapserver does not server WMS/WMTS tiles in GIF
          format.<br></div><div><br></div><div>So here are my few questions :<br></div><div><ul><li>is GIF support enabled by default for WMS/WMTS services
              ?<br></li></ul></div></div></blockquote><div>no<br></div><blockquote type="cite" cite="mid:CAAes_OF6=rEzXh3CWW3TM74ROXHrSa31inF+=7+69GUwNq-0_Q@mail.gmail.com"><div dir="ltr"><div><ul><li>do I need to add the option : -DWITH_GIF=ON for cmake
              configuration ?<br></li></ul></div></div></blockquote><div>only to load raster symbols in GIF format<br></div><blockquote type="cite" cite="mid:CAAes_OF6=rEzXh3CWW3TM74ROXHrSa31inF+=7+69GUwNq-0_Q@mail.gmail.com"><div dir="ltr"><div><ul><li><div>do I need to add a specific mapserver configuration,
              like :<br></div><div> OUTPUTFORMAT<br></div><div>    NAME "GIF"<br></div><div>    DRIVER GDAL/GIF<br></div><div>    MIMETYPE "image/GIF"<br></div><div>    IMAGEMODE RGB<br></div><div>    EXTENSION "gif"<br></div><div> END<br></div></li></ul></div></div></blockquote><p>I don't think that will work. The GDAL GIF driver already expects
      paletted data, not RGB.  And I don't think switching IMAGEMODE to
      PC256 would work since that support has effectively gone.<br></p><p>I believe the only option to get paletted data is to use PNG8
      with the AGG/PNG8 driver and MIMETYPE="image/png; mode=8bit"<br></p><p>Even<br></p><p><br></p><blockquote type="cite" cite="mid:CAAes_OF6=rEzXh3CWW3TM74ROXHrSa31inF+=7+69GUwNq-0_Q@mail.gmail.com"><div dir="ltr"><div><div>Thanks for your help and advices<br></div></div><div>Philippe<br></div><div><br></div></div><div><span>The information in this e-mail is
        confidential. The contents may not be disclosed or used by
        anyone other than the addressee. Access to this e-mail by anyone
        else is unauthorised.<br> If you are not the intended recipient, please notify Airbus
        immediately and delete this e-mail.<br> Airbus cannot accept any responsibility for the accuracy or
        completeness of this e-mail as it has been sent over public
        networks. If you have any concerns over the content of this
        message or its Accuracy or Integrity, please contact Airbus
        immediately.<br> All outgoing e-mails from Airbus are checked using regularly
        updated virus scanning software but you should take whatever
        measures you deem to be appropriate to ensure that this message
        and any attachments are virus free.</span></div><pre class="qt-moz-quote-pre">_______________________________________________
MapServer-dev mailing list
<a class="qt-moz-txt-link-abbreviated" href="mailto:MapServer-dev@lists.osgeo.org">MapServer-dev@lists.osgeo.org</a>
<a class="qt-moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev">https://lists.osgeo.org/mailman/listinfo/mapserver-dev</a>
<br></pre></blockquote><pre class="qt-moz-signature" cols="72">-- 
<a class="qt-moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.<br></pre><div>_______________________________________________<br></div><div>MapServer-dev mailing list<br></div><div><a href="mailto:MapServer-dev@lists.osgeo.org">MapServer-dev@lists.osgeo.org</a><br></div><div><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev">https://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br></div><div><br></div></blockquote><div><br></div></body></html>