<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2015-03-17 12:21 GMT+01:00 andrzej zaborowski <span dir="ltr"><<a href="mailto:balrogg@gmail.com" target="_blank">balrogg@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div id=":2e5" class="" style="overflow:hidden">Hi,<br>
<br>
BPG is an image format by Fabrice Bellard that was in the news a few<br>
months ago as "the JPEG replacement". Its lossy compression mode<br>
seems to work well for OSM tiles because the artifacts are of a<br>
different type than in JPEG. Here are some results for a small test<br>
area for different compression ratios (percentages of size saved<br>
against PNG).<br>
<br></div></blockquote><div><br><br>Thank you for pointing to this.<br><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div id=":2e5" class="" style="overflow:hidden">
51% at default level (-q 28) -- I could see no artifacts in the test area<br>
<br>
62% at -q 32 -- minor deterioration can be seen, you can browse a<br>
small area at <a href="http://c.tile.openstreetmap.pl/viewer.bpg.xhtml" target="_blank">c.tile.openstreetmap.pl/viewer.bpg.xhtml</a></div></blockquote></div><br><br></div><div class="gmail_extra">I can see some aliasing e.g. in the casing, but am not sure if this is from the rendering or the compression, it would be useful to have a direct comparison (i.e. the same tiles in png and bpg and maybe also jpeg).<br><br>This is announced as jpeg replacement, so I guess lots of colours are not a problem? When using sat-images, hillshading or other kinds of gradients (e.g. from blurring or rastersymbolizer) you will get a lot of shades and png will compress worse compared to the relatively few colours you get for instance with the standard style.<br><br></div><div class="gmail_extra">Generally I think loosing image quality but saving 50% of space is likely not a tradeoff that OSM wants to accept, or the tiles would already be compressed in jpeg and not png.<br><br></div><div class="gmail_extra">cheers,<br></div><div class="gmail_extra">Martin<br></div></div>