<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Philippe,<br>
</p>
<div class="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">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi all,<br>
</div>
<div>I am a little bit confused with GIF support for WMS/WMTS
services.</div>
<div>In several parts of the documentation, it is mentioned that
GIF support is discarded with the end of the "GD library"
support.</div>
<div><br>
</div>
<div>I noticed the compilation option in CMakelists.txt :</div>
<div>option(WITH_GIF "Enable GIF support (for PIXMAP loading)"
ON)<br>
</div>
<div>I do not understand the "for PIXMAP loading" comment.</div>
<div><br>
</div>
<div>Anyway, our mapserver does not server WMS/WMTS tiles in GIF
format.</div>
<div><br>
</div>
<div>So here are my few questions :</div>
<div>
<ul>
<li>is GIF support enabled by default for WMS/WMTS services
? <br>
</li>
</ul>
</div>
</div>
</blockquote>
no<br>
<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 ?</li>
</ul>
</div>
</div>
</blockquote>
only to load raster symbols in GIF format<br>
<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 a specific mapserver configuration,
like :<br>
OUTPUTFORMAT<br>
NAME "GIF"<br>
DRIVER GDAL/GIF<br>
MIMETYPE "image/GIF"<br>
IMAGEMODE RGB<br>
EXTENSION "gif"<br>
END<br>
</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"</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</div>
</div>
<div>Philippe</div>
<div><br>
</div>
</div>
<font style="font-size: 9px;">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.</font><br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
MapServer-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:MapServer-dev@lists.osgeo.org">MapServer-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev">https://lists.osgeo.org/mailman/listinfo/mapserver-dev</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>