Hi everybody,<br><br>I&#39;m using Mapproxy as a caching system between Openlayers and Mapserver and I&#39;m having troubles dealing with 24-bit png&#39;s.<br>It seems that mapproxy doesn&#39;t like the &quot;image/png; mode=24bit&quot; format string, that is required by mapserver to generate 24bit png&#39;s.<br>
<br><br>In details, in Openlayers I&#39;ve got a wms layer configured like this:<br><br>//layer WMS<br>    wmsLayer = new OpenLayers.Layer.WMS(<br>        &quot;name&quot;,<br>        //&quot;http://&quot;+serverIp+&quot;/cgi-bin/mapserv?&quot;,<br>
        &quot;<a href="http://localhost:8080/service">http://localhost:8080/service</a>?&quot;,<br>        {<br>            transparent: &#39;TRUE&#39;,<br>            layers: myWMSlyr,<br>            format: &quot;image/png; mode=24bit&quot;,<br>
            projection: new OpenLayers.Projection(&quot;EPSG:900913&quot;),<br>            ratio: 1<br>        },<br>...<br>but Mapproxy is throwing an exception related to  &quot;image/png; mode=24bit&quot; not being in a correct format.<br>
Here&#39;s the stack trace:<br>Traceback (most recent call last):<br>  File &quot;/home/andrea/mapproxy/lib/python2.6/site-packages/mapproxy/wsgiapp.py&quot;, line 159, in __call__<br>    resp = self.handlers[handler_name].handle(req)<br>
  File &quot;/home/andrea/mapproxy/lib/python2.6/site-packages/mapproxy/service/ows.py&quot;, line 38, in handle<br>    return self.services[service].handle(req)<br>  File &quot;/home/andrea/mapproxy/lib/python2.6/site-packages/mapproxy/service/base.py&quot;, line 30, in handle<br>
    return handler(parsed_req)<br>  File &quot;/home/andrea/mapproxy/lib/python2.6/site-packages/mapproxy/service/wms.py&quot;, line 115, in map<br>    img_opts = self.image_formats[params.format_mime_type].copy()<br>KeyError: u&#39;image/png; mode=24bit&#39;<br>
<br>I need to pass the &quot;format=image/png; mode=24bit&quot; to mapserver, is there some settings I should make to mapproxy and/or change the request in Openlayers to achieve that?<br><br>Any help appreciated<br>Andrea<br>