Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: simplify alpha premultiplication, now supported by sharp (#1073)
Maplibre-native outputs premultiplied pixels values. The sharp library did not support it so we added code to cancel the alpha premultiplication. Note that this can only visible onr raster tiles (and probably static maps). The sharp library now supports premultiplied pixels with the right config. Let's use it: it should be faster and easie to maintain. Feature announced here: lovell/sharp#1599 (comment) Feature developped here by @mnutt: lovell/sharp#2685 Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>
- Loading branch information