https://github.com/abi/apple-icon-gen
Generate icon files for all Apple platforms from a single icon
https://github.com/abi/apple-icon-gen
Last synced: 10 months ago
JSON representation
Generate icon files for all Apple platforms from a single icon
- Host: GitHub
- URL: https://github.com/abi/apple-icon-gen
- Owner: abi
- License: mit
- Created: 2017-04-09T17:37:33.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-09T18:00:44.000Z (about 9 years ago)
- Last Synced: 2025-02-08T23:28:38.169Z (over 1 year ago)
- Language: JavaScript
- Size: 55.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Introduction

Transform PNG files into the requisite sizes for Apple platforms. Doesn't require ImageMagick which can be a pain to get working on a Mac. Instead, it uses the `sharp` module.
## Arguments
`--input input file`
`--output output directory`
`--spec list of images sizes to generate, see example below`
## Example usage
```
npm install -g apple-icon-gen
apple-icon-gen --input='data/input/icon.png' --output='data/output' --spec='20@2 20@3 29@2 29@3 40@2 40@3 60
@2 60@3'
```
## Troubleshooting
The code is really simple. Modify/debug it if there are exceptions.