A simple android assets generator
Project description
android-asset-generator
Description
android-assset-generator is a command line program for generate ldpi, mdpi, hdpi, xhdpi, xxhdpi and xxxhdpi density images for your Android Studio Project.
Requeriments
- Pillow 8.0.1
Installing
pip install android-asset-generator
Usage
-
Prepare a folder that contains only the images you want to convert to the different densities.
-
Run the following command.
android-asset-generator path density
Argument | Description | Example |
---|---|---|
path | Full path string of your asset folder | C:\Users\MyUser\Desktop\img xhdpi |
density | The source density. If your images are mdpi, put mdpi as argument | ldpi, mdpi, hdpi, xhdpi, xxhdpi or xxxhdpi |
Note: You must not switch order of the arguments
- The generated images will be saved in different folders within the specified path following the Android Studio standard:
- drawable-ldpi
- drawable-mdpi
- drawable-hdpi
- drawable-xhdpi
- drawable-xxhdpi
- drawable-xxxhdpi
- The source images will be moved to the corresponding folder without having suffered alterations.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for android-asset-generator-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4457c20fa4bb013b5099f0b68470bc59145694944bf848c9a7c0e32651e8360a |
|
MD5 | dbb788fd8abf24e94816c2e5d2992375 |
|
BLAKE2b-256 | 2e57bffee4abfd51aa25ea35c9f5b1add9a85d1a647113ef2c94dd29c0bffe7b |
Close
Hashes for android_asset_generator-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bd2d45e12db263714e5d6571c39b719beff80009b3207fe2b534441d0a5b425 |
|
MD5 | 369a3b0da592239d942dc7cf9bf9fba4 |
|
BLAKE2b-256 | 7087ffe00de8131346af3163ccb10f301c0e777704c9d1e4b4853022cc2ff576 |