Hi list,<br><br>it seems an image returned by WMS GetLegendGraphic can&#39;t be made transparent unless we use the deprecated TRANSPARENT property of the LEGEND object.<br><br>My outputformat is defined transparent:<br><br>
&nbsp; OUTPUTFORMAT<br>&nbsp;&nbsp;&nbsp; NAME &quot;png&quot;<br>&nbsp;&nbsp;&nbsp; MIMETYPE &quot;image/png&quot;<br>&nbsp;&nbsp;&nbsp; DRIVER &quot;GD/PNG&quot;<br>&nbsp;&nbsp;&nbsp; EXTENSION &quot;png&quot;<br>&nbsp;&nbsp;&nbsp; IMAGEMODE &quot;RGBA&quot;<br>&nbsp;&nbsp;&nbsp; TRANSPARENT TRUE<br>&nbsp; END<br><br>
If I try an equivalent mode=legend request the legend does come back transparent, so I believe this is likely a problem in the mapwms.c code.<br><br>This is both a problem in MS 5.0 and 4.8.4.<br><br>Any pointers?<br><br>
Example page to reproduce:<br><br>&lt;html&gt;<br>&lt;body style=&quot;background-color:#FF0000&quot;&gt;<br>&lt;img src=&quot;<a href="http://www.rijkswaterstaat.nl/services/geoservices/basispakket/grenzen?mode=legend&amp;layer=AAA212">http://www.rijkswaterstaat.nl/services/geoservices/basispakket/grenzen?mode=legend&amp;layer=AAA212</a>&quot;&gt;<br>
&lt;img src=&quot;<a href="http://www.rijkswaterstaat.nl/services/geoservices/basispakket/grenzen?service=WMS&amp;format=image/png&amp;request=GetLegendGraphic&amp;version=1.1.1&amp;layer=AAA212">http://www.rijkswaterstaat.nl/services/geoservices/basispakket/grenzen?service=WMS&amp;format=image/png&amp;request=GetLegendGraphic&amp;version=1.1.1&amp;layer=AAA212</a>&quot;&gt;<br>
&lt;/body&gt;<br>&lt;/html&gt;<br><br>Best regards,<br>Bart<br><br><br>