This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "theslinux-media". The branch, master has been updated via 4a71dc2a8e8abc000771658d4054e2d50be1d7e8 (commit) from 836f4b694a8fb8e38957aa4e212d40ee84049f72 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 4a71dc2a8e8abc000771658d4054e2d50be1d7e8 Author: Ky-Anh Huynh <kyanh@xxxxxxxxxxxxx> Date: Sat Jul 27 14:59:19 2013 +0700 favicon.ico: - alpha levels, new sizes. Fix #87 The old icon is too ugly on new firefox (22) and smart-phones. In this version, we remove all alpha levels; this makes the icon ugly but it is viewable. We alo remove large sizes from icon ----------------------------------------------------------------------- Summary of changes: bin/favicon-ico-creator.sh | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/bin/favicon-ico-creator.sh b/bin/favicon-ico-creator.sh index 1ab587c..f3f9b64 100755 --- a/bin/favicon-ico-creator.sh +++ b/bin/favicon-ico-creator.sh @@ -5,8 +5,9 @@ # Author : Anh K. Huynh # Date : 2013 May 14th # License: GPL v2 -# Ref. : https://gist.github.com/pfig/1808188 - +# Ref. : https://gist.github.com/pfig/1808188 (not really work) +# Ref. : http://www.imagemagick.org/Usage/thumbnails/#favicon +# # The contents of the original script https://gist.github.com/pfig/1808188 # # convert source-WxW.png -resize 256x256 -transparent white favicon-256.png @@ -19,7 +20,7 @@ # _I_SOURCE="${0%/*}/../tsl.svg" -for _size in 16 32 64 128 256; do +for _size in 16 32 48 64; do (( _res = 5 * _size )) (( _res = _res / 2 )) @@ -30,5 +31,10 @@ for _size in 16 32 64 128 256; do tsl.svg done -convert tmp-tsl-{16,32,64,128,256}.png -colors 256 favicon.ico -rm -f tmp-tsl-{16,32,64,128,256}.png +convert \ + tmp-tsl-{16,32,48,64}.png \ + -colors 256 \ + -alpha remove \ + favicon.ico +echo >&2 ":: New .ico file was written to 'favicon.ico'" +[[ ${CLEAN} == "no" ]] || rm -fv tmp-tsl-[0-9]*.png hooks/post-receive -- theslinux-media -- Purpose: Store commits, feeds from other projects Post: mailto:theslinux-phantom@xxxxxxxxxxxxx Archive, Gmane: http://theslinux.org/lists/phantom/ Subscribe: mailto:theslinux-phantom-request@xxxxxxxxxxxxx?Subject=subscribe Unsubscribe: mailto:theslinux-phantom-request@xxxxxxxxxxxxx?Subject=unsubscribe Other information: http://theslinux.org/lists (vi) or http://theslinux.org/lists/en (en) Support: mailto:theslinux-questions@xxxxxxxxxxxxx