在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):smallSohoSolo/McImage开源软件地址(OpenSource Url):https://github.com/smallSohoSolo/McImage开源编程语言(OpenSource Language):Kotlin 85.3%开源软件介绍(OpenSource Introduction):McImage
McImage is a Non-invasive plugin for compress all res in your project. Include
Used algorithm Release Success!The version 1.0.1 now support all build.gradle version! Already support mavenCentral. Feature
Update Log
Who is usingI can put your icon with one link at here if you use McImage. My email [email protected] UseThe first, add the plugin in your project root build.gradle. buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.smallsoho.mobcase:McImage:1.5.1'
}
} Then, apply the plugin in your every module.PS: If you have one more Module, you need apply it in every one. apply plugin: 'McImage' Last, put the mctools dir in your project root dir.Download it here
ConfigYou can set the config in build.gradle.If you not set this,all config will use default. McImageConfig {
isCheckSize true //Whether to detect image size,default true
optimizeType "Compress" //Optimize Type,"ConvertWebp" or "Compress",default "Compress", "CompressWebp" is a better compression ratio but it don't support api < 18
maxSize 1*1024*1024 //big image size threshold,default 1MB
enableWhenDebug false //switch in debug build,default true
isCheckPixels true // Whether to detect image pixels of width and height,default true
maxWidth 1000 //default 1000
maxHeight 1000 //default 1000
whiteList = [ //do not do any optimization for the images who in the list
"icon_launcher.png"
]
mctoolsDir "$rootDir"
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 multi-thread processing,default true
bigImageWhiteList = [] //do not detect big size or large pixels for the images who in the list
} ThanksLicense
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论