ICO, PWA icons, and 1200×630 cards

The generator is a small, self-contained icon writer. It does not load an icon library or call a server. The notes below describe the files it writes.

PNG-in-ICO favicon

The .ico file starts with an ICONDIR header 00 00 01 00 and a count of 02 00. Two 16-byte ICONDIRENTRY records follow, with width, height, planes = 1, bit count = 32, payload size, and a byte offset. A 256×256 frame would store width and height as 0. Each payload is a raw PNG that begins with 89 50 4E 47 0D 0A 1A 0A.

Apple and PWA PNG icons

apple-touch-icon-180.png is a 180×180 PNG for iOS home-screen bookmarks. icon-192.png and icon-512.png are the usual Web App Manifest icons. All three are drawn from the same master badge in this tab.

manifest.webmanifest

The JSON lists name, short_name, display = standalone, start_url, theme and background colors, and the 192 and 512 icons. It is valid JSON and uses relative paths, so you can host it next to the images.

Open Graph 1200×630

og-card-1200x630.png is a PNG at the usual social-card size for X and LinkedIn. Three layouts are available: Dark Editorial, Clean Light, and Gradient Accent. The head snippet includes og:image, width, and height tags.

Back to the studio

Questions

Will browsers accept a PNG-in-ICO file?

Modern browsers that accept PNG frames inside an ICO can use this favicon. This page does not promise the behavior of a particular very old reader that only understands BMP frames.

Why 1200×630?

That is the long-standing recommended size for a large Open Graph image. The preview is a scaled view of a canvas that is actually 1200×630 pixels.