Skip to content

Commit

Permalink
修改read me
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanStone committed Jun 4, 2019
1 parent bc47496 commit 767508b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
28 changes: 14 additions & 14 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,20 @@ mctools
```groovy
McImageConfig {
isCheckSize true //是否检测图片大小,默认为true
optimizeType "ConertWebp" //优化类型,可选"ConvertWebp","Compress",转换为webp或原图压缩,默认ConvertWebp,压缩比更高
maxSize 1*1024*1024 //大图片阈值,default 1MB
enableWhenDebug false //debug下是否可用,default true
isCheckPixels true // 是否检测大像素图片,default true
maxWidth 1000 //defualt 1000 如果开启图片宽高检查,默认的最大宽度
maxHeight 1000 //defualt 1000 如果开启图片宽高检查,默认的最大高度
whiteList = [ //默认为空,如果添加,对图片不进行任何处理
"icon_launcher.png"
]
mctoolsDir "$rootDir/tools"
isSupportAlphaWebp true //是否支持带有透明度的webp,default true
multiThread true //是否开启多线程处理图片,default true
bigImageWhiteList = [ //默认为空,如果添加,大图检测将跳过这些图片
]
optimizeType "ConertWebp" //优化类型,可选"ConvertWebp","Compress",转换为webp或原图压缩,默认ConvertWebp,压缩比更高
maxSize 1*1024*1024 //大图片阈值,default 1MB
enableWhenDebug false //debug下是否可用,default true
isCheckPixels true // 是否检测大像素图片,default true
maxWidth 1000 //defualt 1000 如果开启图片宽高检查,默认的最大宽度
maxHeight 1000 //defualt 1000 如果开启图片宽高检查,默认的最大高度
whiteList = [ //默认为空,如果添加,对图片不进行任何处理
"icon_launcher.png"
]
mctoolsDir "$rootDir/tools"
isSupportAlphaWebp false //是否支持带有透明度的webp,default false,带有透明图的图片会进行压缩
multiThread true //是否开启多线程处理图片,default true
bigImageWhiteList = [ //默认为空,如果添加,大图检测将跳过这些图片
]
}
```

Expand Down
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,20 @@ You can set the config in build.gradle.If you not set this,all config will use d
```groovy
McImageConfig {
isCheckSize true //Whether to detect image size,default true
optimizeType "ConertWebp" //Optimize Type,"ConvertWebp" or "Compress",default "ConvertWebp"
maxSize 1*1024*1024 //big image size threshold,default 1MB
enableWhenDebug false //swithc in debug build,default true
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
"icon_launcher.png"
]
mctoolsDir "$rootDir/tools"
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
]
optimizeType "ConertWebp" //Optimize Type,"ConvertWebp" or "Compress",default "ConvertWebp"
maxSize 1*1024*1024 //big image size threshold,default 1MB
enableWhenDebug false //swithc in debug build,default true
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
"icon_launcher.png"
]
mctoolsDir "$rootDir/tools"
isSupportAlphaWebp false //Whether support convert the Image with Alpha chanel to Webp,default false, the images with alpha chanels will be compressed.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

0 comments on commit 767508b

Please sign in to comment.