<div dir="ltr">Thanks for that!<div><br></div><div style>In png even if I set the parameters you suggested the colors still not OK, but when i switch to jpeg it is nice. So I will use jpeg format.</div><div style><br></div>
<div style>Thanks again,</div><div style>Csaba</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 9 July 2013 09:28, Martin Kokeš <span dir="ltr"><<a href="mailto:shr3k@typo3-hosting.com" target="_blank">shr3k@typo3-hosting.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>

<div>
I meant that for aerial imagery would be better to use a image/jpeg format:<div>---</div><div>  Ortho_romai_sztendre2_cache:</div><div>    ...</div><div><div>    image:</div><div>      format: image/jpeg</div><div>      resampling_method: bilinear</div>
<div>      encoding_options:</div><div>        jpeg_quality: 85</div><div>---</div><div><span style="font-size:10pt">Martin</span></div><blockquote style="padding-left:5px;margin-left:5px;border-left:#0000ff 2px solid;margin-right:0px">
<hr><div class="im"><b>From:</b> Sandor Csaba [mailto:<a href="mailto:sandor.csaba@viamap.hu" target="_blank">sandor.csaba@viamap.hu</a>]<br></div><b>To:</b> <a href="mailto:martin@tuningmedia.cz" target="_blank">martin@tuningmedia.cz</a><br>
<b>Cc:</b> <a href="mailto:mapproxy@lists.osgeo.org" target="_blank">mapproxy@lists.osgeo.org</a> [mailto:<a href="mailto:mapproxy@lists.osgeo.org" target="_blank">mapproxy@lists.osgeo.org</a>]<br><b>Sent:</b> Tue, 09 Jul 2013 08:55:43 +0200<br>
<b>Subject:</b> Re: [MapProxy] color depth reduction<div><div class="h5"><br><br><div>Hi Martin,<div><br></div><div>Thanks for the info.</div><div><br></div><div>Here's my cache setting:</div><div><br></div><div><div>
  Ortho_romai_sztendre2_cache:</div><div>    meta_buffer: 20</div>
<div>    meta_size: [5, 5]</div><div>    format: image/png</div><div>    request_format: image/png</div><div>    link_single_color_images: true</div><div>    grids: [Ortho_romai_sztendre2_grid]</div><div>    sources: [Ortho_romai_sztendre_source]</div>

<div>    watermark:</div><div>      text: <a href="http://fototerkep.hu" target="_blank">fototerkep.hu</a></div><div>    cache:</div><div>      type: mbtiles</div><div>      filename: /home/viamap/tilecache/Ortho_romai_sztendre2.mbtiles</div>

<div><br></div></div><div><br></div><div>And the image/png setting from globals/image:</div><div><br></div><div><div>  image:</div><div>      formats:</div><div>        image/png:</div><div>          mode: RGBA</div>
<div>          transparent: true</div><div>          resampling_method: bilinear</div><div><br></div></div><div>I  notice the difference in resampling method and the colors: 0 and transparent: false<br></div><div>
<br></div><div>I'll try these settings.</div><div><br></div><div>Can you explain your remark using png for aerial images?</div><div><br></div><div>Thanks a lot,</div><div>Csaba</div>
<div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 8 July 2013 15:34, Martin Kokeš <span><<a href="mailto:shr3k@typo3-hosting.com" target="_blank">shr3k@typo3-hosting.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>

<div>
Hi Csaba,<div><br></div><div>It's shame you don't post your yaml, but I suggest:</div><div><br></div><div><div>globals:</div><div><span style="font-size:10pt">  image:</span></div><div>    formats:</div><div>      png24:</div>

<div>        format: image/png</div><div>        mode: RGBA</div><div>        colors: 0</div><div>        transparent: false</div><div>        resampling_method: bicubic</div><div><br></div><div>And use this image format in your cache settings.</div>

<div><br></div><div>BTW are you using PNG format for air/satellite imagery consciously?</div><div><br></div>Martin<br><blockquote style="padding-left:5px;margin-left:5px;border-left:#0000ff 2px solid;margin-right:0px"><b>From:</b> Sandor Csaba [mailto:<a href="mailto:sandor.csaba@viamap.hu" target="_blank">sandor.csaba@viamap.hu</a>]<br>

<b>To:</b> <a href="mailto:mapproxy@lists.osgeo.org" target="_blank">mapproxy@lists.osgeo.org</a> [mailto:<a href="mailto:mapproxy@lists.osgeo.org" target="_blank">mapproxy@lists.osgeo.org</a>]<br><b>Sent:</b> Mon, 08 Jul 2013 15:20:36 +0200<br>

<b>Subject:</b> [MapProxy] color depth reduction<div><div><br><br><div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">Hi List,</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">

<br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">
Do you have any thoughts on the color degradation experienced here:</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></div><a href="http://map.fototerkep.hu/arviz/index.html?x=355676.5&y=5281953.375&zoom=8" style="font-size:13.333333969116211px;font-family:Tahoma" target="_blank">http://<span style="background-color:rgb(255,255,204);color:rgb(34,34,34)">map</span>.fototerkep.hu/arviz/index.html?x=355676.5&y=5281953.375&zoom=8</a><br clear="all" style="font-family:arial,sans-serif;font-size:13.333333969116211px">


<div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">See the swimming pool's blue color transition. </div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">


<br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">Any suggestions setting the image properties?</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">


On the original geotiffs the color transition is smooth.</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><a href="http://webmap.viamap.hu/upload/ortho_tiff_comp.jpg" target="_blank">http://webmap.viamap.hu/upload/ortho_tiff_comp.jpg</a></div>


<div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">Thanks,</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">


Csaba</div><div><br></div>-- <br>Sándor Csaba<br>szolgáltatási vezető<br>ViaMap Kft.<br>Székhely/postacím: 2176 Erdőkürt, Téglaház utca 4.<br><br>Iroda:<br>1076 Budapest, Garay u. 29-31. I. 1.<br>(EMLA Környezeti Management és Jog Egyesület)<br>


<br><br>Tel: +3630/9605853<br>Fax: +3617002542<br><br>
</div>
</div></div></blockquote>
</div></div><br>_______________________________________________<br>
MapProxy mailing list<br>
<a href="mailto:MapProxy@lists.osgeo.org" target="_blank">MapProxy@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapproxy" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapproxy</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Sándor Csaba<br>szolgáltatási vezető<br>ViaMap Kft.<br>Székhely/postacím: 2176 Erdőkürt, Téglaház utca 4.<br><br>Iroda:<br>1076 Budapest, Garay u. 29-31. I. 1.<br>

(EMLA Környezeti Management és Jog Egyesület)<br><br><br>Tel: +3630/9605853<br>Fax: +3617002542<br><br>
</div>
</div></div></blockquote>
</div></div><br>_______________________________________________<br>
MapProxy mailing list<br>
<a href="mailto:MapProxy@lists.osgeo.org">MapProxy@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapproxy" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapproxy</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Sándor Csaba<br>szolgáltatási vezető<br>ViaMap Kft.<br>Székhely/postacím: 2176 Erdőkürt, Téglaház utca 4.<br><br>Iroda:<br>1076 Budapest, Garay u. 29-31. I. 1.<br>
(EMLA Környezeti Management és Jog Egyesület)<br><br><br>Tel: +3630/9605853<br>Fax: +3617002542<br><br>
</div>