ImageScripts

APACHE-2.0 License

Stars
3

Android Image Scripts

This repository is a collection of image scripts for creating android image assets.

Android Vector Drawables

Requirements:

Install svgo and avocado: npm install -g svgo avocado

./svg2xml.sh --help

# This creates a my_file.xml android vector resource
./svg2xml.sh my_file.svg

WebP

Requirements:

./webp.sh --help

# This creates image.webp files in the density bucket folders (drawable-xhdpi, drawable-xxhdpi, ...)
./webp.sh -dp=300 image.png