<font size="-1">MArco, you can check the png file properties, &quot;Bit depth&quot; for ex. you should have 32 bits per pixel for full feature png (RGBA) and 8 for quantized<br><br></font>regards, michael<br><br><div class="gmail_quote">

On Tue, Jan 3, 2012 at 5:23 PM, DeDuikertjes <span dir="ltr">&lt;<a href="mailto:DeDuikertjes@xs4all.nl">DeDuikertjes@xs4all.nl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <font size="-1">Michael,<br>
      <br>
      Thanks for your prompt response.<br>
      <br>
      The WMS-service is not under my control.<br>
      It&#39;s an ArcGIS10 server (the one serving the layer which doesn&#39;t
      like te be opaque). <br>
      Probably the image is quantised, but that&#39;s what we want as we are
      aiming on mobile use.<br>
      <br>
      Is there a way to see if the image is quantised?<br>
      Why is there a problem? Can it be mitigated?<br>
      <br>
      MArco<br>
    </font><br>
    Op 3-1-2012 16:15, Michael Shishcu schreef:
    <div><div class="h5"><blockquote type="cite">Hi,<br>
      <br>
      Do you have quantisation for the outputformat at the mapserver
      side? if so, this can be the problem.<br>
      <br>
      regards, michael<br>
      <br>
      <div class="gmail_quote">On Tue, Jan 3, 2012 at 5:08 PM,
        DeDuikertjes <span dir="ltr">&lt;<a href="mailto:DeDuikertjes@xs4all.nl" target="_blank">DeDuikertjes@xs4all.nl</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000"> <font size="-1">List,<br>
              <br>
              I&#39;ve the mapproxy config to my liking. Everything is
              working fine except for the opacity on a source.<br>
              <br>
              I would expect a layer pointing to a cache pointing to a
              source with definition:<br>
                wms_Bedrijventerrein:<br>
                  concurrent_requests: 4<br>
                  image: {opacity: 0.1}<br>
                  req: { layers: Bedrijventerrein, transparent: true,
              url: &#39;<a href="http://myservice.nl/MapServer/WMSServer" target="_blank">http://myservice.nl/MapServer/WMSServer</a>&#39;}<br>
                  seed_only: false<br>
                  supported_srs: [&#39;EPSG:28992&#39;]<br>
                  type: wms<br>
                  wms_opts: {featureinfo: true}<br>
              to be rendered almost transparent when requested and/ or
              merged on top of other layers. <br>
              The result is unfortunately fully opaque.<br>
              <br>
              Can anyone point me to what I am doing wrong.<br>
              <br>
              I&#39;ve isolated the problem and tested it in the
              configuration attached below.<br>
              <br>
              Any help greatly appreciated,<br>
              MArco<br>
              <br>
              caches:<br>
                _Bedrijventerrein:<br>
                  grids: [applas_grid]<br>
                  link_single_color_images: true<br>
                  sources: [wms_Bedrijventerrein]<br>
                _lufo:<br>
                  cache: {directory_layout: tc, type: file}<br>
                  grids: [applas_grid]<br>
                  link_single_color_images: true<br>
                  meta_buffer: 0<br>
                  meta_size: [4, 4]<br>
                  minimize_meta_requests: true<br>
                  sources: [lufo_wms]<br>
                  format: image/png<br>
                  image:<br>
                    mode: RGBA<br>
              globals:<br>
                cache:<br>
                  base_dir: /var/applas_user_data/prod/cache/<br>
                  lock_dir: /var/applas_user_data/prod/cache/locks/<br>
                  meta_buffer: 255<br>
                  meta_size: [3, 3]<br>
                  minimize_meta_requests: true<br>
                image:<br>
                  formats:<br>
                    image/png:<br>
                      encoding_options: {quantizer: fastoctree}<br>
                      mode: P<br>
                      transparent: true<br>
              grids:<br>
                applas_grid:<br>
                  bbox: [-285401.91999999998, 22598.080000000002,
              595401.92000000004, 903401.92000000004]<br>
                  res: [3440.6399999999999, 1720.3199999999999,
              860.15999999999997, 430.07999999999998,<br>
                    215.03999999999999, 107.52, 53.759999999999998,
              26.879999999999999, 13.44, 6.7199999999999998,<br>
                    3.3599999999999999, 1.6799999999999999,
              0.83999999999999997, 0.41999999999999998,<br>
                    0.20999999999999999]<br>
                  srs: EPSG:28992<br>
                  tile_size: [256, 256]<br>
              layers:<br>
              - name: lufo<br>
                sources: [_lufo]<br>
                title: Luchtfoto<br>
              - name: Bedrijventerrein<br>
                sources: [_Bedrijventerrein]<br>
                title: Bedrijventerrein<br>
              services:<br>
                tms: null<br>
                wms:<br>
                  image_formats: [&#39;image/png&#39;]<br>
                  md:<br>
                    abstract: Tiled WMS<br>
                    access_constraints: None<br>
                    contact: {address: mystreet 1, city: Utrecht,
              country: The Netherlands, email: <a href="mailto:nope@spam.org" target="_blank">nope@spam.org</a>,<br>
                      organization: nope, person: nope, phone: nope,<br>
                      position: Technical Director, postcode: nope}<br>
                    fees: None<br>
                    online_resource: <a href="http://myservice.nl/" target="_blank">http://myservice.nl/</a><br>
                    title: tile service.<br>
                  srs: [&#39;EPSG:28992&#39;, &#39;EPSG:900913&#39;, &#39;EPSG:4326&#39;]<br>
              sources:<br>
                lufo_wms:<br>
                  concurrent_requests: 4<br>
                  req: {layers: ipo_luchtfoto_actueel, url: &#39;<a href="http://myservice.nl/mapserv.cgi?map=luchtfoto.map" target="_blank">http://myservice.nl/mapserv.cgi?map=luchtfoto.map</a>&#39;}<br>
                  supported_srs: [&#39;EPSG:28992&#39;]<br>
                  type: wms<br>
                wms_Bedrijventerrein:<br>
                  concurrent_requests: 4<br>
                  image: {opacity: 0.1}<br>
                  req: { layers: Bedrijventerrein, transparent: true,
              url: &#39;<a href="http://myservice.nl/MapServer/WMSServer" target="_blank">http://myservice.nl/MapServer/WMSServer</a>&#39;}<br>
                  seed_only: false<br>
                  supported_srs: [&#39;EPSG:28992&#39;]<br>
                  type: wms<br>
                  wms_opts: {featureinfo: true}<br>
            </font> </div>
          <br>
          _______________________________________________<br>
          MapProxy mailing list<br>
          <a href="mailto:MapProxy@lists.osgeo.org" target="_blank">MapProxy@lists.osgeo.org</a><br>
          <a href="http://lists.osgeo.org/mailman/listinfo/mapproxy" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapproxy</a><br>
          <br>
        </blockquote>
      </div>
      <br>
    </blockquote>
  </div></div></div>

</blockquote></div><br>