Skip to content

Bash Script to generate favicons in multiple sizes (.ico and .png)

License

Notifications You must be signed in to change notification settings

fariasmateuss/favicon-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Favicon Generator

Getting Started

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

The following copies are generated

  • favicon.ico (16x16 32x32 64x64 96x96)
  • favicon-16x16.png (16x16)
  • favicon-32x32.png (32x32)
  • favicon-64x64.png (64x64)
  • favicon-96x96.png (96x96)
  • favicon-128x128.png (128x128)
  • favicon-256x256.png (256x256)
  • favicon-512x512.png (512x512)
  • apple-touch-icon-152x152.png (152x152)
  • apple-touch-icon-167x167.png (167x167)
  • apple-touch-icon-180x180.png (180x180)

License

Licensed under the GPL-3.0 License license by Mateus V. Farias.

About

Bash Script to generate favicons in multiple sizes (.ico and .png)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages