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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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