Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rodneylab/open-source-favicon-generation

Open source favicon generation: create your favicon from scratch then optimise it for modern and legacy browsers using free apps in 2022.
https://github.com/rodneylab/open-source-favicon-generation

favicon favicon-generator inkscape optimisation optipng scour

Last synced: 3 months ago
JSON representation

Open source favicon generation: create your favicon from scratch then optimise it for modern and legacy browsers using free apps in 2022.

Awesome Lists containing this project

README

        

Rodney Lab open-source-favicon-generation Github banner



Rodney Lab logo



Open Source Favicon Generation

# open-source-favicon-generation

Script for generating optimised favicons from an SVG using open source tools. The code accompanies the post on open source favicon generation. If you have any questions, please drop a comment at the bottom of that page.

## Generate favicons to `./ouput`

This script uses Inkscape, OptiPNG and Scour so you need these installed to run it.

On macOS, you can install them with Homebrew:

```bash
brew install inkscape optipng scour
```

Once you have the apps installed, just run the script:
```bash
sh optimised-favicon-generator.sh input-svg-file.svg
```

This creates the optimised favicon files:
- `output/apple-touch-icon.png`
- `output/favicon.ico`
- `output/icon.svg`
- `output/icon-192.png`
- `output/icon-512.png`

which are the five favicon files needed for wide support in legacy and modern browsers. More details in the post mentioned above.

Feel free to jump into the [Rodney Lab matrix chat room](https://matrix.to/#/%23rodney:matrix.org).