<div dir="ltr"><div>You may need to define a request_format: image/png to the cache to ensure that the source images are transparent.<br></div><div></div><div><a href="https://mapproxy.org/docs/latest/configuration.html?highlight=request_format#request-format">https://mapproxy.org/docs/latest/configuration.html?highlight=request_format#request-format</a></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 13 Oct 2020 at 14:08, Tobias Wendorff <<a href="mailto:tobias.wendorff@tu-dortmund.de">tobias.wendorff@tu-dortmund.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi there!<br>
<br>
I have a problem concerning the merging of two transparent layers: After<br>
merging, the displayed layer gets an opaque white background. The<br>
non-merged layers are displayed transparently - so these should be fine.<br>
<br>
The layers are based on MBTiles coming straight out of QGIS. I can't<br>
tell if the PNGs have an alpha channel or "palette transparency".<br>
<br>
Enabling a storage for "cache_polygons_patterns_mixed" didn't change the<br>
background.<br>
<br>
My Pillow is at version 6.2.2 (last version for Python2). MapProxy and<br>
all its dependencies and system libraries are up to date.<br>
<br>
Before filing a bug in Github, am I doing anything wrong?<br>
This might be associated with <a href="https://github.com/mapproxy/mapproxy/issues/2" rel="noreferrer" target="_blank">https://github.com/mapproxy/mapproxy/issues/2</a><br>
<br>
Best regards,<br>
Tobias<br>
<br>
layers:<br>
  - name: polygons_solid<br>
    title: polygons_solid<br>
    sources: [cache_polygons]<br>
  - name: patterns<br>
    title: patterns<br>
    sources: [cache_patterns]<br>
  - name: polygons_patterns_mixed_layer<br>
    title: polygons_patterns_mixed_layer<br>
    sources: [cache_polygons, cache_patterns]<br>
  - name: polygons_patterns_mixed_cache<br>
    title: polygons_patterns_mixed_cache<br>
    tile_sources: [cache_polygons_patterns_mixed]<br>
<br>
caches:<br>
  cache_polygons_patterns_mixed:<br>
    sources: [cache_polygons, cache_patterns]<br>
    grids: [osm_grid]<br>
    disable_storage: true<br>
  cache_patterns:<br>
    sources: []<br>
    grids: [osm_grid]<br>
    cache:<br>
      type: mbtiles<br>
      filename: /srv/mapproxy/data/patterns.mbtiles<br>
  cache_polygons:<br>
    sources: []<br>
    grids: [osm_grid]<br>
    cache:<br>
      type: mbtiles<br>
      filename: /srv/mapproxy/data/polygons.mbtiles<br>
<br>
grids:<br>
  osm_grid:<br>
    base: GLOBAL_MERCATOR<br>
    srs: 'EPSG:3857'<br>
    origin: nw<br>
<br>
globals:<br>
  cache:<br>
    base_dir: '/srv/mapproxy/cache_data'<br>
    lock_dir: '/srv/mapproxy/cache_data/locks'<br>
    tile_lock_dir: '/srv/mapproxy/cache_data/tile_locks'<br>
    concurrent_tile_creators: 2<br>
    link_single_color_images: true<br>
  image:<br>
    paletted: true<br>
    formats:<br>
      custom_format:<br>
        format: image/png<br>
        mode: P<br>
        colors: 32<br>
        transparent: true<br>
        encoding_options:<br>
          quantizer: fastoctree<br>
_______________________________________________<br>
MapProxy mailing list<br>
<a href="mailto:MapProxy@lists.osgeo.org" target="_blank">MapProxy@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapproxy" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapproxy</a></blockquote></div>