Add cool scripts to work with app icons
requires imagemagick and oxipng
This commit is contained in:
parent
db16459e4d
commit
54114a199b
2 changed files with 10 additions and 0 deletions
3
scripts/minify_icon_png.sh
Executable file
3
scripts/minify_icon_png.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
echo oxipng -v -o 3 -a -s -Z ./priv/static/icon-*.png ./priv/static/apple-touch-icon.png
|
||||||
|
oxipng -v -o 3 -a -s -Z ./priv/static/icon-*.png ./priv/static/apple-touch-icon.png
|
7
scripts/pack_favicon_ico.sh
Executable file
7
scripts/pack_favicon_ico.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
echo "convert ./priv/static/favicon-16.png ./priv/static/favicon-32.png ./priv/static/favicon.ico \
|
||||||
|
&& rm ./priv/static/favicon-16.png ./priv/static/favicon-32.png"
|
||||||
|
|
||||||
|
convert ./priv/static/favicon-16.png ./priv/static/favicon-32.png ./priv/static/favicon.ico \
|
||||||
|
&& rm ./priv/static/favicon-16.png ./priv/static/favicon-32.png
|
Loading…
Reference in a new issue