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

Styles with transparency are not rendered properly #25

Closed
brendan-ward opened this issue Feb 11, 2019 · 0 comments
Closed

Styles with transparency are not rendered properly #25

brendan-ward opened this issue Feb 11, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@brendan-ward
Copy link
Collaborator

The issue has to do with the output from Mapbox GL having pre-multipled alpha values, whereas sharp expects un-premultipled values. The effect is that colors with transparency are much darker and less saturated than expected.

mapbox/mapbox-gl-native#9124

The fix is to un-premultiply the pixel values prior to exporting to PNG format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant