3v0k4/favicon_factory: Generate favicons from an SVG
21-Feb-2025 14
Tired of managing dozens of favicons to support all the browsers, resolutions, and formats?
favicon_factory generates from an SVG the minimal set of icons needed by modern browsers.
The source SVG is ideal for modern browsers. And it may contain a tag with @media (prefers-color-scheme: dark) to support light/dark themes, which is ignored when generating favicons.
Icons will be generated in the same folder as the source SVG unless already existing:
favicon.ico (32x32) for legacy browsers; serve it from /favicon.ico because tools, like RSS readers, just look there.
apple-touch-icon.png (180x180) for Apple devices when adding a webpage to the home screen; a background and a padding around the icon is applied to make it look pretty.
manifest.webmanifest that includes icon-192.png and icon-512.png for Android devices; the former for display on the home screen, and the latter for the splash screen while the PWA is loading.
3v0k4/favicon_factory: Generate favicons from an SVG #ruby #rubydeveloper #rubyonrails #3v0k4/favicon_factory: #Generate #favicons https://rubyonrails.ba/link/3v0k4-favicon_factory-generate-favicons-from-an-svg