Skip to content

shinshin86/gosfg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gosfg

Simple favicon generator implemented in Go.

Install

go install github.com/shinshin86/gosfg@latest

Usage

gosfg -i logo.png -n "Your site name"

You can check the detailed options with the help command.

Usage of gosfg:
  -d string
    	Specify output directory. If the directory does not exist, create it. (default "public")
  -displayMode string
    	Specify display mode. (default "standalone")
  -i string
    	[Required] Specify target image.
  -n string
    	Specify your site name.
  -themeColor string
    	Specify theme color. (default "#ffffff")
  -tileColor string
    	Specify tile color. (default "#da532c")

Why do you output favicon as png instead of ico?

Go does not seem to natively support the ico format in stdlib at this time.
https://pkg.go.dev/image#section-directories

License

MIT

Author

Yuki Shindo

About

Simple favicon generator implemented in Go.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages