GoogleChromeLabs/squoosh

Transparency removal

Ouverte

#736 ouverte le 23 mars 2020

 (8 commentaires) (25 réactions) (0 personne assignée)TypeScript (2 136 forks)batch import
UIcodechelp wanted

Métriques du dépôt

Stars
 (25 720 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

(This is a merge of a couple of issues)

Is your feature request related to a problem? Please describe. Some images have transparency and the transparency is either undesired or the target image format cannot handle transparency. We can give the user more control how these cases are handled.

Describe the solution you'd like

Just like we have a section for preprocessing the size of an image, we could add a section to preprocess the transparency of an image, offering the following options (or more):

  • Choose a background color (#347, #699)
  • Texture Dilation (#735, 1, 2)

Guide contributeur