@tonycletus/app-icon-pipeline
v0.1.0
Published
Generate PWA, Apple, favicon, and Windows ICO app icons from one source image.
Maintainers
Readme
@tonycletus/app-icon-pipeline
Generate production-ready app icons from one source image.
Use this when you want the same brand image to power your PWA icons, Apple touch icon, favicon, web manifest, and Windows installer icon without keeping several hand-made assets in sync.
It creates:
icon-192.pngicon-512.pngapple-touch-icon.pngfavicon.svgmanifest.webmanifest- Windows-compatible
.icowith DIB/BMP entries, not PNG-compressed entries.
Install
npm install -D @tonycletus/app-icon-pipeline
pnpm add -D @tonycletus/app-icon-pipeline
yarn add -D @tonycletus/app-icon-pipelineCLI
npx app-icon-pipeline --input ./brand.png --out ./public --name "My App"You can also write the Windows .ico file wherever your desktop build expects
it:
npx app-icon-pipeline \
--input ./brand.png \
--out ./public \
--name "My App" \
--ico ./installer/windows/app.icoAPI
import { generateAppIcons } from "@tonycletus/app-icon-pipeline";
await generateAppIcons({
input: "./brand.png",
outDir: "./public",
name: "My App",
icoPath: "./installer/windows/app.ico",
});Source Image
For best results, start with a square PNG of at least 512x512. Transparent
backgrounds are supported. The package resizes and pads the image as needed, so
your source can be a logo mark, app icon, or brand image.
Generated Files
By default the output directory receives:
icon-192.pngfor Android/PWA installsicon-512.pngfor high resolution PWA installsapple-touch-icon.pngfor iOS home screen installsfavicon.svgfor browser tabsmanifest.webmanifestwith the app name and icon references
When --ico or icoPath is provided, it also writes a Windows-compatible ICO
file with BMP/DIB icon entries. That format works well with installers and
Windows desktop shortcuts.
Notes
This package does not design an icon for you. It takes one source image and generates the platform-specific formats that apps and installers expect.
