A simple CLI tool to generate Android and iOS icons from a single image.
npm install -g app-iconset-generator
app-iconset-generator -i <path-to-image> -o <output-directory>
# OR
app-iconset-generator --input <path-to-image> --output <output-directory>
Option | Description |
---|---|
-i, --input |
Input image file (required) |
-o, --output |
Output directory (default: icons ) |
-p, --platform |
Specify platform to generate icons for (android , ios , all ) (default: all ) |
-n, --no-round |
Disable generating round Android icons |
app-iconset-generator -i ./example/logo.png -o ./example
app-iconset-generator -i ./example/logo.png -o ./example -p android
app-iconset-generator -i logo.png # Default path
git clone https://github.com/mirmousaviii/app-iconset-generator.git
cd app-iconset-generator
npm install
npm run build # or `npx tsc`
npm link # to use the local CLI tool
npm unlink -g app-iconset-generator # to remove the local CLI tool
app-iconset-generator -i ./example/logo.png -o ./example
# Or test with `node`
node dist/index.js -i ./example/logo.png -o ./example # Test in local
If you have any idea, feel free to open an issue and/or create a pull request.
This project is licensed under the MIT License.