Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Cap inset detector & optimizer for resizable UIKit assets.
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
spec
.gitignore
.rspec
.ruby-gemset
.ruby-version
.travis.yml
Gemfile
LICENSE.txt
README.md
Rakefile
elrio.gemspec

README.md

Elrio

Cap inset detector & optimizer for resizable UIKit assets.

Build Status Code Climate Test Coverage Dependency Status Gem Version

Installation

Add this line to your application's Gemfile:

gem 'elrio'

And then execute:

$ bundle

Or install it yourself as:

$ gem install elrio

Usage

To get the resizable cap insets for an asset:

$ elrio analyze image.png

To create an optimized version of the asset:

$ elrio optimize image.png

Example

When run with this image:

Source Image

$ elrio optimize image.png
image.png: [48, 48, 48, 48] # Top, Left, Bottom, Right

This optimized version is written to image-optimized.png:

Source Image

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
Something went wrong with that request. Please try again.