Skip to content

Commit 5126301

Browse files
committed
Add script to create a favicon for a given image.
1 parent 93e5713 commit 5126301

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

bin/favicon.sh

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/sh
2+
3+
#
4+
# Creates a favicon for a given image.
5+
#
6+
# Usage: ./favicon.sh image_source [image_destination]
7+
#
8+
# Requires the ImageMagick convert binary to be installed.
9+
#
10+
11+
convert \
12+
-density 384 \
13+
-colors 256 \
14+
-background transparent \
15+
-define icon:auto-resize=32,16 \
16+
"${1?}" \
17+
"${2:-favicon.ico}"

0 commit comments

Comments
 (0)