From bc47496feac2b2e956bc52af0b5a5122276bab34 Mon Sep 17 00:00:00 2001 From: CyanStone Date: Tue, 4 Jun 2019 16:02:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E9=80=8F=E6=98=8E=E5=BA=A6We?= =?UTF-8?q?bp=E5=BC=80=E5=85=B3=E9=BB=98=E8=AE=A4=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- src/main/java/com/smallsoho/mcplugin/image/Config.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c80cd6b..80933c6 100644 --- a/README.md +++ b/README.md @@ -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 ] } ``` diff --git a/src/main/java/com/smallsoho/mcplugin/image/Config.java b/src/main/java/com/smallsoho/mcplugin/image/Config.java index f076671..64b6d60 100644 --- a/src/main/java/com/smallsoho/mcplugin/image/Config.java +++ b/src/main/java/com/smallsoho/mcplugin/image/Config.java @@ -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[]{}; //大图检测白名单