[MapProxy] Problem with color debth in mapproxy

Poul Kjeldager Sørensen pks at ascend.xyz
Thu Dec 11 23:21:14 PST 2014


http://mapproxy.org/docs/latest/configuration.html

"paletted
    Enable paletted (8bit) PNG images. It defaults to true for backwards compatibility. You should set this to false if you need 24bit PNG files. You can enable 8bit PNGs for single caches with a custom format (colors: 256)."

Maybe you got 8bit pngs cached. Try clear the cache and use paletted: false

From: mapproxy-bounces at lists.osgeo.org [mailto:mapproxy-bounces at lists.osgeo.org] On Behalf Of Burri Pascal
Sent: Friday, December 12, 2014 7:18 AM
To: 'mapproxy at lists.osgeo.org'
Subject: [MapProxy] Problem with color debth in mapproxy

Hello

I would like to publish a raster-image with umn mapserver -> mapproxy. Everything is o.k. but the color depth of the mapproxy output is bad, compared to the output of mapserver . The image delivered by mapserver is much smoother than the image from mapproxy, where similar colors are aggregate to one color.
I tried the options « mode: RGBA »,  « colors : 0 » and switched from png to jpeg - but nothing improved the color debth of the image. Do you have any suggestions?

Thanks for your assistance.
Best regards
Pascal


An excerpt of my yaml:
caches:
  ortho_cache:
    sources: [ortho]
    grids: [beo]
    format: image/png
    paletted: false
    cache:
      type: sqlite
      dirname: ortho
    image:
      mode: RGBA

Mapproxy version: 1.6

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20141212/43a370aa/attachment.html>


More information about the MapProxy mailing list