<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Travis,<br>
      <br>
      Thanks. I tried. Mapproxy reports: <br>
      <pre>mapproxy.config - WARNING - unknown 'opacity' in globals.image.formats.my_format</pre>
      Seems logical as opacity is not mentioned in the docs as an option
      for an image format<br>
      On 21-03-17 14:50, Travis Kirstine wrote:<br>
    </div>
    <blockquote
cite="mid:CALtm4h3tnwdUPop0H4CtHiH5ph009+Dvqcp9kSjb39LrSXOkPg@mail.gmail.com"
      type="cite">
      <div dir="ltr">I added a new global my_format with the opacity
        defined and used it for the caches - does that work?<br>
        <div>
          <div class="gmail_extra"><br>
            <div class="gmail_quote">On 21 March 2017 at 07:03,
              deduikertjes <span dir="ltr"><<a
                  moz-do-not-send="true"
                  href="mailto:deduikertjes@xs4all.nl" target="_blank">deduikertjes@xs4all.nl</a>></span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
                0.8ex;border-left:1px solid
                rgb(204,204,204);padding-left:1ex">
                <div bgcolor="#FFFFFF"> <font face="Agrofont">Layer
                    merging problem<br>
                    <br>
                    Hi List,<br>
                    <br>
                    When (vertically) merging layers (mapproxy 1.9)
                    results are not as expected.<br>
                    <br>
                    Merging two layers which have fully transparent
                    areas show only the topmost layer. The bottom layer
                    is not shown as should (not at all).<br>
                    If the top layer has no fully transparent areas but
                    is completely opaque and opacity is set to eg 0.8
                    the bottom layer is shown as should. <br>
                    <br>
                    Did I make a config error or did I run into a bug?<br>
                    <br>
                    Any help greatly appreciated, MArco<br>
                    <br>
                    An excerpt from my config:<br>
                    <br>
                    services:<br>
                      tms:<br>
                        # needs no arguments<br>
                      wms:<br>
                        srs: ['EPSG:28992']<br>
                        image_formats: ['image/png', 'png']<br>
                    <br>
                    globals:<br>
                      cache:<br>
                        minimize_meta_requests: true<br>
                        meta_size: [1, 1]<br>
                        meta_buffer: 0<br>
                        <br>
                      image:<br>
                        paletted: false<br>
                        formats:<br>
                          image/png:<br>
                            mode: RGBA<br>
                            transparent: true<br>
                  </font></div>
                <div bgcolor="#FFFFFF"><b><font face="Agrofont">    
                      my_format:     </font><br>
                  </b></div>
                <div bgcolor="#FFFFFF"><b><font face="Agrofont">       
                      format: image/png:<br>
                              mode: RGBA<br>
                              transparent: true</font></b></div>
              </blockquote>
              <div><b>          opacity: 0.8</b> <br>
              </div>
              <div><br>
                 </div>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
                0.8ex;border-left:1px solid
                rgb(204,204,204);padding-left:1ex">
                <div bgcolor="#FFFFFF"><font face="Agrofont"> sources:<br>
                      wms_source1:<br>
                        type: wms<br>
                        wms_opts: <br>
                          featureinfo: true<br>
                          legendgraphic: true<br>
                        supported_srs: ['EPSG:28992']<br>
                        req:<br>
                          url: '<a moz-do-not-send="true"
                      class="gmail-m_8234804354909700662moz-txt-link-freetext"
href="http://myservice.nl/geoserver/gwc/service/wms" target="_blank">http://myservice.nl/<wbr>geoserver/gwc/service/wms</a>?'<br>
                          layers: 'layer1'<br>
                          transparent: true<br>
                    <br>
                      wms_source2:<br>
                        type: wms<br>
                        wms_opts: <br>
                          featureinfo: true<br>
                          legendgraphic: true<br>
                        supported_srs: ['EPSG:28992']<br>
                        req:<br>
                          url: '<a moz-do-not-send="true"
                      class="gmail-m_8234804354909700662moz-txt-link-freetext"
href="http://myservice.nl/geoserver/gwc/service/wms" target="_blank">http://myservice.nl/<wbr>geoserver/gwc/service/wms</a>?'<br>
                          layers: 'layer2'<br>
                          transparent: true<br>
                    <br>
                    caches:<br>
                      _source1:<br>
                         sources: [wms_source1]<br>
                         link_single_color_images: true<br>
                         disable_storage: true<br>
                  </font></div>
                <div bgcolor="#FFFFFF"><font face="Agrofont"> <b>    
                      format: my_format</b><br>
                  </font></div>
                <div bgcolor="#FFFFFF"><font face="Agrofont"> <br>
                      _source2:<br>
                         sources: [wms_source2]<br>
                         link_single_color_images: true<br>
                         disable_storage: true<br>
                  </font></div>
                <div bgcolor="#FFFFFF"><font face="Agrofont"> <b>    
                      format: my_format</b><br>
                  </font></div>
                <div bgcolor="#FFFFFF"><font face="Agrofont"> <br>
                    layers:<br>
                    <br>
                      - name: 'layer1'<br>
                        sources: [_source1]<br>
                        title: 'layer 1'<br>
                    <br>
                    <br>
                      - name: 'layer2'<br>
                        sources: [_source2]<br>
                        title: 'Layer 2'<br>
                  </font> </div>
                <br>
                ______________________________<wbr>_________________<br>
                MapProxy mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:MapProxy@lists.osgeo.org">MapProxy@lists.osgeo.org</a><br>
                <a moz-do-not-send="true"
                  href="https://lists.osgeo.org/mailman/listinfo/mapproxy"
                  rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/mapproxy</a><br>
              </blockquote>
            </div>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>