在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):meili/WebpConvert_Gradle_Plugin开源软件地址(OpenSource Url):https://github.com/meili/WebpConvert_Gradle_Plugin开源编程语言(OpenSource Language):Groovy 100.0%开源软件介绍(OpenSource Introduction):webp batch convert pics gradle pluginRead this in other languages: 简体中文. ###UpdateInfo 1.1.34
IntroduceThis plugin can find the jpg,png files under the directory of /build/intermediates/res/ So,the generated apk is included with the webp pics. The rule to find the target pic:
The plugin task named webpConvertPlugin,which will execute before processXXXResource Task LimitAndroid support webp file naturly from 4.0 ,so you don't need to change your code if you minSdkVersion is 15+ But please pay attention,if your apk is using the jpg with transparency,then the convert webp file will not work below 4.2.1. refer to :http://developer.android.com/guide/appendix/media-formats.html Install 'webp' command tools
reference to : https://developers.google.com/speed/webp/docs/precompiled#installing_cwebp_and_dwebp_on_os_x_with_macports Usage:
now,clean your project then build it .you will find the webp pics is in your generated apk
LicencewebpConvertPlugin is licensed under the MIT license contact me:[email protected] |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论