Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default to png8:m=h PNG format #1764

Closed
springmeyer opened this issue Oct 10, 2012 · 1 comment
Closed

default to png8:m=h PNG format #1764

springmeyer opened this issue Oct 10, 2012 · 1 comment
Milestone

Comments

@springmeyer
Copy link
Member

We should consider moving from full color png to png8:m=h as the default tile image format in future releases.

png8 (reduced color, paletted png) is radically smaller. m=h triggers hextree quantization in mapnik, which is able to preserve many levels of alpha so that the image quality matches full color png. m=o (for octree) is default but only supports 3-4 levels of alpha. The reason m=h is not the default png8 mode in Mapnik is that hextree for some time has been experimental and slower. https://github.com/mapnik/mapnik/wiki/OutputFormats

But recently we've hammered on the hextree support by using it to render mapbox-streets. And there are several efforts underway to optimize hextree encoding (or to optimize paths using hextree when no alpha is needed for a given tile):

Once the above tickets are done on the mapnik side we should consider making this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant