0.0
Repository is archived
No release in over 3 years
Low commit activity in last 3 years
Generates Apple Touch Icons or a favicon given a square image.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

= 0.18.1
 Project Readme

IconGenerator

Gem Version Code Climate Build Status Dependency Status

❗Note that this project is unmaintained

Generates Apple Touch Icons or a multiresolution (32x32 and 16x16) favicon given a square image.

Installation

$ gem install icon_generator

Dependencies

  • Ruby 1.9.3 and up
  • ImageMagick
  • Thor

Usage

To generate a set of apple-touch-icons:

$ icon_generator touch my/source/file.png my/output/directory

To generate a single 152x152 apple-touch-icon-precomposed.png:

$ icon_generator touch my/source/file.png my/output/directory --single

To generate a multiresolution favicon:

$ icon_generator favicon my/source/file.png my/output/directory

To generate both at once:

$ icon_generator generate --favicon my/source/favicon.png --touch my/source/touch.png my/output/directory

The generic generate task will work whether both --favicon and --touch are present or not:

$ icon_generator generate --favicon my/source/favicon.png my/output/directory

Testing

$ rake test

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