Skip to content
Painless way to resize your icon for all platforms: wechat, weibo, ios, android, and so on
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
res
spec
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
iconcutter.gemspec

README.md

IconCutter

Painless way to resize your icon for all platforms: wechat, weibo, ios, android, and so on

Pre-Installation

IconCutter relies on imagemagick, if you do not have it installed, see below:

  • if you are using Mac OS, use brew install imagemagick
  • if you are using Debian or Ubuntu, use apt-get install imagemagick
  • if you are using Windows, pray.....

Installation

  1. If you have ruby env installed on your computer, just run below command:
gem install iconcutter
  1. Or, you can directly clone this repo, see below:
git clone https://github.com:lyfeyaj/iconcutter.git

Usage

Run command as below:

## Options
# Usage: crop_image_as_app_icons [options] image_file
#    -p, --platform x,y,z             Specify app plaform: android,ios,wechat,weibo,ios_submition,all
#    -o, --out [DIR]                  output icons directory
#    -h, --help                       Show help message

iconcutter your_path_to_the_image -o ~/YourIconDirectory

Enjoy, versions of icons for all kinds of platforms will be generated!

Output

output

Contribute

  • Fork
  • Create a new branch (git checkout -b my-new-feature)
  • Commit your patch or feature (git commit -am 'Added some feature')
  • Push your codes (git push origin my-new-feature)
  • Create a new push request

LICENCE

MIT

Author

Felix Liu

You can’t perform that action at this time.