GoogleChromeLabs/squoosh

Transparency removal

Open

#736 建立於 2020年3月23日

在 GitHub 查看
 (8 留言) (25 反應) (0 負責人)TypeScript (1,431 fork)batch import
UIcodechelp wanted

倉庫指標

Star
 (20,335 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

(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)

貢獻者指南