To run this script you have to install ImageMagick or make sure that it is already installed.
This bash script takes an image as a parameter, and uses ImageMagick to convert it to several other formats used on modern websites. The dimensions of your picture should be at least 512x512 pixels.
./favicon.sh image.png
You can also create a list with all tags of the created favicons with the flag -x
as the second argument. A file favicons.txt will be created for this. You can simply insert the content of this file into the <head>
of your html page.
./favicon.sh image.png -x
Licensed under the GPL-3.0 License license by Mateus V. Farias.