droidscale

command
v0.0.0-...-8a12d84 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2023 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Overview

Command droidscale resizes android resources.

Set srcdpi to ldpi, mdpi, hdpi, xhdpi, xxhdpi and xxxhdpi; srcdpi scaling is skipped by default. Specifying a srcdpi below xxxhdpi will scale images up if -scaleup flag is set. Contents of flag path will be walked and new files written to out directory will be flattened. This means you can organize the contents of flag path with subdirectories to target different interpolations for use on a particular set of images. For example:

droidscale -path="xhdpi/L2" -interp="Lanzcos2"
droidscale -path="xhdpi/L3" -interp="Lanzcos3"

Inspecting the contents of ./out/drawable-mdpi/ and friends will show a flat list of the resized files.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL