Skip to content

Commit

Permalink
支持透明度Webp开关默认关闭
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanStone committed Jun 4, 2019
1 parent d9cbc4b commit bc47496
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ McImageConfig {
isCheckPixels true // Whether to detect image pixels of width and height,default true
maxWidth 1000 //defualt 1000
maxHeight 1000 //defualt 1000
whiteList = [ //do not do any optimization for the Images who in the list
whiteList = [ //do not do any optimization for the images who in the list
"icon_launcher.png"
]
mctoolsDir "$rootDir/tools"
isSupportAlphaWebp true //Whether support convert the Image with Alpha chanel to Webp,default true, its need api level >=18 or do some compatible measures
multiThread true //是否开启多线程处理图片,default true
bigImageWhiteList = [ //默认为空,如果添加,大图检测将跳过这些图片
isSupportAlphaWebp false //Whether support convert the Image with Alpha chanel to Webp,default false, if config true, its need api level >=18 or do some compatible measures
multiThread true //Whether open muti-thread processing,default true
bigImageWhiteList = [ //do not detect big size or large pixels for the images who in the list
]
}
```
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/smallsoho/mcplugin/image/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Config {
public int maxHeight = 1000;
public String[] whiteList = new String[]{}; //优化图片白名单
public String mctoolsDir = "";
public boolean isSupportAlphaWebp = true; //是否支持webp化透明通道的图片
public boolean isSupportAlphaWebp = false; //是否支持webp化透明通道的图片,如果开启,请确保minSDK >= 18,或做了其他兼容措施
public boolean multiThread = true;
public String[] bigImageWhiteList = new String[]{}; //大图检测白名单

Expand Down

0 comments on commit bc47496

Please sign in to comment.