Webmanifest Icons

Thank you for all your work on Progressive Web Application Specifications!

I've noticed that both Google and Microsoft are expecting PWA's to provide
PNG images (icons) for the client browser or OS to resize.  But PNG is a
raster format, and resizing causes aliasing (jagged edges) and blurriness.
For the site I'm currently working on, a single 1.6K SVG would suffice, but
I have to provide over 30K of PNG icons.

If you look at the history of the apple-touch-icon, they keep specifying
larger and larger PNG sizes.  It seems like a resizable SVG would be more
future-proof.

It would be nice to have something in the spec say that a single SVG can be
specified as a resizable icon, or the primary icon, with optional PNG files
for specific sizes for people who want to get complicated.  I think all
relevant browsers and operating systems support SVG already.

I don't want to force anyone to use SVG or PNG.  Just that if I provide a
resizable SVG, I shouldn't then have to provide a dozen sizes of PNG files
too.  Maybe something that says client browsers and OS's should prefer SVG
files to PNGs for resizing, and PNGs for specific sizes.

Microsoft requires at least one 512x512 PNG icon which it will resize:
https://github.com/pwa-builder/pwabuilder-windows-chromium-docs/blob/master/image-recommendations.md
Note the large number of sizes at the higher levels.

Google requires a 512x512 and/or (not sure) 192x192 which it will *resize*:
https://web.dev/add-manifest/#icons

Also:
https://stackoverflow.com/questions/48839338/which-icon-sizes-are-required-for-progressive-web-apps-pwa-as-of-q1-2018

Anyway, it would be nice to prefer the resizable format when resizing
images.  Let me know if this is not the right place to post this.

-- 
Glen K. Peterson

Received on Saturday, 31 October 2020 16:09:03 UTC