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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file android-asset-generator-1.0.1.tar.gz.
File metadata
- Download URL: android-asset-generator-1.0.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4457c20fa4bb013b5099f0b68470bc59145694944bf848c9a7c0e32651e8360a
|
|
| MD5 |
dbb788fd8abf24e94816c2e5d2992375
|
|
| BLAKE2b-256 |
2e57bffee4abfd51aa25ea35c9f5b1add9a85d1a647113ef2c94dd29c0bffe7b
|
File details
Details for the file android_asset_generator-1.0.1-py3-none-any.whl.
File metadata
- Download URL: android_asset_generator-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bd2d45e12db263714e5d6571c39b719beff80009b3207fe2b534441d0a5b425
|
|
| MD5 |
369a3b0da592239d942dc7cf9bf9fba4
|
|
| BLAKE2b-256 |
7087ffe00de8131346af3163ccb10f301c0e777704c9d1e4b4853022cc2ff576
|