GoogleChromeLabs/squoosh

Reduce palette - alpha only

Open

#819 opened on Sep 5, 2020

View on GitHub
 (9 comments) (0 reactions) (0 assignees)TypeScript (1,431 forks)batch import
good first issuehelp wanted

Repository metrics

Stars
 (20,335 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

WebP and JPEG-XL encode alpha data 'losslessly'. I'm not 100% sure with JPEG-XL, but WebP's compression benefits from palette reduction.

It'd be good to add a toggle to palette reduction that makes it only act on the alpha channel of the image.

Contributor guide