[MapProxy] Problem with color debth in mapproxy

Burri Pascal p.burri at alpgis.ch
Fri Dec 12 00:04:06 PST 2014


Thanks for the hint.
I tried "paletted: false" and cleared the cache - without success. The color depth seem to be still too low.

ortho_cache:
    sources: [ortho]
    grids: [beo]
    format: image/png
    cache:
      type: sqlite
      dirname: ortho
    image:
      mode: RGBA
      paletted: false

Best regards
Pascal

Von: Poul Kjeldager Sørensen [mailto:pks at ascend.xyz]
Gesendet: Freitag, 12. Dezember 2014 08:21
An: Burri Pascal; 'mapproxy at lists.osgeo.org'
Betreff: RE: Problem with color debth in mapproxy

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/20f30faa/attachment-0001.html>


More information about the MapProxy mailing list