RealFaviconGenerator/realfavicongenerator

Use SVG in Android Manifest if image uploaded is SVG

Opened this issue · 2 comments

If the original image uploaded is an SVG then we should copy that image and provide it in the package as well and use it where possible. For example the Android Manifest file could use it as such:

{
    "src": "icon/favicon.svg",
    "sizes": "36x36 48x48 72x72 96x96 144x144 192x192"
}

thus making the manifest much shorter and the package much smaller (since we wouldn't need the different sized png files.

Interesting. There are a few things to clarify to do this:

  • Is SVG supported by Android Chrome? Apparently Googlers discuss about PNG.
  • Is SVG the right format anytime? An issue is raised on W3C Web app manifest page
  • How RFG is supposed to deal with this? My may concern is about effect (eg. drop shadow) applied to the Android Chrome that should be done on an SVG image. Currently, RFG does most of its work on PNG images.

Not sure if still important... But, yes - SVG is supported on Android since Android 3.0. And to my knowledge PWA only works since Android 4.1, maybe 4.0. Chrome for Android was introduced in Android 4.