This shell script helps you generate all the associated add-to-home-screen icons for a progressive web app from a few source images.
Almost every known touch-icon is generated by this tool, and includes:
- iOS: apple-touch-icon-*
- Android (Chrome): touch-icon-*
- Windows (Edge): ms-touch-icon-*
TBD
Before you can use this script, you'll need at least one source image to work from, but it'll be better if you supply two or more source images to work from.
The sizes you should use include:
- 256 x 256 (Most important)
- 64 x 64
- 128 x 128
- 512 x 512 (Least important)
TBD
Place all the generated PNGs in your webroot: /
. That's it!
Nope. Each handset will request a particular file name from the affected website's webroot, e.g.: GET /apple-touch-icon.png
. There's no need to list each file in your document's <head>
.
This project welcomes issues first, pull-requests second.
Get in touch, highlight a problem or improvement you'd like to work on, let's talk about a solution.
- Generate icons based on current handset usage patterns
- Generate
manifest.json
icons section - Compress output with lossy or lossless compressors