<p>Rendering meta tiles with mod_tile/renderd always made my hillshade look ugly. This results in the 8 bit PNGs, which Mapnik doesn't rasterize as nice as imagemagick does. The difference can be seen here:<br>
8-bit: <a href="https://f.cloud.github.com/assets/3618939/1873522/11e41fc2-78bb-11e3-99e0-c4be3c6d901b.png" target="_blank"><img src="https://f.cloud.github.com/assets/3618939/1873522/11e41fc2-78bb-11e3-99e0-c4be3c6d901b.png" alt="png256" style="max-width:100%;"></a><br>
32-bit: <a href="https://f.cloud.github.com/assets/3618939/1873520/0494de4c-78bb-11e3-8c2e-2454a3f441ee.png" target="_blank"><img src="https://f.cloud.github.com/assets/3618939/1873520/0494de4c-78bb-11e3-8c2e-2454a3f441ee.png" alt="png" style="max-width:100%;"></a></p>
<p>Only two lines have to be changed in src/gen_tile.c:<br>
Substitute both "png256" with "png"</p>
<p>There are two possible ways:</p>
<ul>
<li>Introduce option in user config file (/usr/local/etc/renderd.conf) for bit depth</li>
<li>Improve Mapnik. Imagemagick can produce nice looking 8-bit PNGs for example by "convert -type Palette -quality 90 [...]"</li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/openstreetmap/mod_tile/issues/64'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/4046574__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwNDc1NjY3MCwiZGF0YSI6eyJpZCI6MjMxNjY3ODl9fQ==--d6da0d33064d0334efd780b77f6f46f4d41e261c.gif' height='1' width='1'></p>