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

Unable to generate webp tiles #301

Closed
julienrf opened this issue Dec 10, 2022 · 3 comments · Fixed by #318
Closed

Unable to generate webp tiles #301

julienrf opened this issue Dec 10, 2022 · 3 comments · Fixed by #318

Comments

@julienrf
Copy link

I saw that there is TYPE setting but it seems only png image/png is supported. Is it possible to produce webp files? I’ve observed that webp files are less than half the size of their png equivalent for a very small loss of quality:

$ ls -hl
-rw-rw-r-- 1 julien julien 42K Dec 10 21:19 biella.png
-rw-rw-r-- 1 julien julien 16K Dec 10 21:50 biella.webp

biella.png:

biella

biella.webp:

Screenshot from 2022-12-10 22-28-07

@SomeoneElseOSM
Copy link
Contributor

See also switch2osm/switch2osm#212 for reference

@hummeltech
Copy link
Collaborator

@julienrf There is a pull request which allows this to be done by adding outputFormat to TYPE so setting TYPE to webp image/webp webp would do what you are asking about. I have rebased it on the current codebase and left a comment here.

@julienrf
Copy link
Author

julienrf commented Mar 5, 2023

That’s fantastic, thank you @hummeltech for helping with that!

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

Successfully merging a pull request may close this issue.

3 participants