@himanshuvishwas/appicon-generator
v1.0.0
Published
CLI tool to generate iOS and Android app icons instantly.
Maintainers
Readme
AppIcon Generator CLI
A fast, completely offline command-line tool to generate perfectly sized app icons for iOS and Android. Powered by AppIcon.cc.
Features
- No API required: Processes images completely locally using
sharp. - iOS Support: Generates a complete
AppIcon.appiconsetfolder withContents.jsonready for Xcode. - Android Support: Generates all required
mipmapfolders (mdpi through xxxhdpi) and the 512x512 Play Store icon.
Installation
Install globally via npm:
npm install -g @himanshuvishwas/appicon-generatorOr run instantly using npx:
npx @himanshuvishwas/appicon-generator input.pngUsage
# Generate both iOS and Android icons in the current directory
appicon input.png
# Generate ONLY Android icons
appicon input.png --android
# Generate ONLY iOS icons
appicon input.png --ios
# Output to a specific directory
appicon input.png --output ./my-assetsInput Image
For best results, use a high-resolution, square PNG image without transparency for iOS (Apple rejects transparent icons), sized at 1024x1024 pixels.
License
MIT
