[MapProxy] color depth reduction

Martin Kokeš shr3k at typo3-hosting.com
Tue Jul 9 00:28:37 PDT 2013


I meant that for aerial imagery would be better to use a image/jpeg format:
---
  Ortho_romai_sztendre2_cache:
    ...

    image:
      format: image/jpeg
      resampling_method: bilinear
      encoding_options:
        jpeg_quality: 85
---
Martin  _____  

From: Sandor Csaba [mailto:sandor.csaba at viamap.hu]
To: martin at tuningmedia.cz
Cc: mapproxy at lists.osgeo.org [mailto:mapproxy at lists.osgeo.org]
Sent: Tue, 09 Jul 2013 08:55:43 +0200
Subject: Re: [MapProxy] color depth reduction


Hi Martin,


Thanks for the info.


Here's my cache setting:



  Ortho_romai_sztendre2_cache:
    meta_buffer: 20  
    meta_size: [5, 5]
    format: image/png
    request_format: image/png
    link_single_color_images: true
    grids: [Ortho_romai_sztendre2_grid]
    sources: [Ortho_romai_sztendre_source]  
    watermark:
      text: fototerkep.hu
    cache:
      type: mbtiles
      filename: /home/viamap/tilecache/Ortho_romai_sztendre2.mbtiles  




And the image/png setting from globals/image:



  image:
      formats:
        image/png:
          mode: RGBA  
          transparent: true
          resampling_method: bilinear


I  notice the difference in resampling method and the colors: 0 and transparent: false

  

I'll try these settings.


Can you explain your remark using png for aerial images?


Thanks a lot,
Csaba  







On 8 July 2013 15:34, Martin Kokeš <shr3k at typo3-hosting.com> wrote:
      
  Hi Csaba,


It's shame you don't post your yaml, but I suggest:



globals:
  image:
    formats:
      png24:  
        format: image/png
        mode: RGBA
        colors: 0
        transparent: false
        resampling_method: bicubic


And use this image format in your cache settings.  


BTW are you using PNG format for air/satellite imagery consciously?

Martin
From: Sandor Csaba [mailto:sandor.csaba at viamap.hu]
  To: mapproxy at lists.osgeo.org [mailto:mapproxy at lists.osgeo.org]
Sent: Mon, 08 Jul 2013 15:20:36 +0200
  Subject: [MapProxy] color depth reduction





Hi List,
  

  Do you have any thoughts on the color degradation experienced here:

http://map.fototerkep.hu/arviz/index.html?x=355676.5&y=5281953.375&zoom=8
    


See the swimming pool's blue color transition. 
    

Any suggestions setting the image properties?


    On the original geotiffs the color transition is smooth.


http://webmap.viamap.hu/upload/ortho_tiff_comp.jpg    


Thanks,
    Csaba

-- 
Sándor Csaba
szolgáltatási vezető
ViaMap Kft.
Székhely/postacím: 2176 Erdőkürt, Téglaház utca 4.

Iroda:
1076 Budapest, Garay u. 29-31. I. 1.
(EMLA Környezeti Management és Jog Egyesület)
    

Tel: +3630/9605853
Fax: +3617002542

      
_______________________________________________
  MapProxy mailing list
  MapProxy at lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapproxy
  




-- 
Sándor Csaba
szolgáltatási vezető
ViaMap Kft.
Székhely/postacím: 2176 Erdőkürt, Téglaház utca 4.

Iroda:
1076 Budapest, Garay u. 29-31. I. 1.
  (EMLA Környezeti Management és Jog Egyesület)


Tel: +3630/9605853
Fax: +3617002542

      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20130709/05ff29dc/attachment.html>


More information about the MapProxy mailing list