Skip to main content

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

  1. Prepare a folder that contains only the images you want to convert to the different densities.

  2. 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

  1. 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
  1. 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

android-asset-generator-1.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

android_asset_generator-1.0.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for android-asset-generator-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4457c20fa4bb013b5099f0b68470bc59145694944bf848c9a7c0e32651e8360a
MD5 dbb788fd8abf24e94816c2e5d2992375
BLAKE2b-256 2e57bffee4abfd51aa25ea35c9f5b1add9a85d1a647113ef2c94dd29c0bffe7b

See more details on using hashes here.

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

Hashes for android_asset_generator-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3bd2d45e12db263714e5d6571c39b719beff80009b3207fe2b534441d0a5b425
MD5 369a3b0da592239d942dc7cf9bf9fba4
BLAKE2b-256 7087ffe00de8131346af3163ccb10f301c0e777704c9d1e4b4853022cc2ff576

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page