Skip to content

julianshen/gradle-android-webp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gradle-android-webp

This is a plugin for Android Gradle to automatically covert PNG resources to WEBP.

Pre-requirement

This plugin requires WEBP command line utility cwebp. Download and install it from WEBP. Make sure cwebp is in your path.

Usage

  1. This plugin is published on JCenter. Add dependency in your Android project's top-level build.gradle file:
buildscript {
    dependencies {
        classpath "wtf.cowbay.gradlewebp:gradle-android-webp:1.0"
    }
}
  1. Apply the plugin in your app module's build.gradle file:
apply plugin: 'wtf.cowbay.gradlewebp'

androidwebp {
   cwebp "/path/to/cwebp" /* optional */
   quality 70 /* Image quality */
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages