Project

calavicci

0.0
No commit activity in last 3 years
No release in over 3 years
Wrapper to execute a drawable converter to convert high resolution Android resources to lower resolution resources.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.3
>= 0
 Project Readme

Calavicci

Wrapper to execute a drawable converter to convert high resolution Android resources to lower resolution resources.

Prerequisites

Must have ImageMagick installed on the machine on which you wish to use this gem. If you're on a Mac, make it easy on yourself and install it via Homebrew:

brew install imagemagick

Installation

gem install calavicci

Usage

Give calavicci the largest resolution resources you have. If you do not specify any output directories (-d flags), then it will automatically scale to mdpi and hdpi, based on the input directory you give it.

calavicci ~/workspace/hello-world-android/res/drawable-xhdpi

Or, specify the output directories:

calavicci -d ~/workspace/hello-world-android/res/drawable-mhdpi -d ~/workspace/hello-world-android/res/drawable-hhdpi ~/workspace/hello-world-android/res/drawable-xhdpi

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Acknowledgement

The drawable_convert.py script has been adapted from the original script found at this GitHub Gist: https://gist.github.com/kmansoft/2771791