add favicon script

This commit is contained in:
Gitea 2021-09-14 18:30:13 +00:00
parent 1966b01671
commit 15d8a95d77
4 changed files with 58 additions and 0 deletions

18
favicons/README.md Normal file
View File

@ -0,0 +1,18 @@
# favicons
lil script we use to update the favicon after gitea updates
## list of files and dimensions
* favicon.ico - 128x128
* gitea-safari.svg
* gitea-sm.png - 120x120
* apple-touch-icon.png - 180x180
* favicon.png - 180x180
* gitea-192.png - 192x192
* avatar_default.png - 200x200
* gitea-512.png - 512x512
* gitea-lg.png - 880x880

29
favicons/generate.sh Normal file
View File

@ -0,0 +1,29 @@
#!/bin/sh
# generate all sizes
for size in 16 32 64 120 128 180 192 200 512 880; do
if [ ! -f tildegit-$size.png ]; then
convert -resize "${size}x${size}" tildegit.png tildegit-$size.png
fi
done
convert \
tildegit-16.png \
tildegit-32.png \
tildegit-64.png \
tildegit-128.png \
-delete 0 -alpha off -colors 256 favicon.ico
cp tildegit-120.png gitea-sm.png
cp tildegit-180.png apple-touch-icon.png
cp tildegit-180.png favicon.png
cp tildegit-192.png gitea-192.png
cp tildegit-200.png avatar_default.png
cp tildegit-512.png gitea-512.png
cp tildegit-880.png gitea-lg.png
cp tildegit.svg favicon.svg
cp tildegit.svg logo.svg
cp tildegit.svg gitea-safari.svg
cp *.png *.svg favicon.ico /srv/git/public/img/

BIN
favicons/tildegit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

11
favicons/tildegit.svg Normal file
View File

@ -0,0 +1,11 @@
<svg width="327.68" height="327.68" version="1.1" viewBox="0 0 327.68 327.68" xmlns="http://www.w3.org/2000/svg">
<g transform="translate(-.030902 -.53835)" stroke-width=".32">
<path d="m237.44 235.75c0-0.0484 1.116-1.1644 2.48-2.48l2.48-2.392-2.392 2.48c-2.2216 2.3034-2.568 2.626-2.568 2.392zm-10.4-15.272c1.3997-1.408 2.617-2.56 2.705-2.56s-0.98525 1.152-2.385 2.56-2.617 2.56-2.705 2.56 0.98524-1.152 2.385-2.56zm-34.14-36.059c0.231-0.0924 0.50701-0.0811 0.61334 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37279-0.0154-0.44861-0.0912-0.19334-0.19333zm10.88 0c0.231-0.0924 0.50701-0.0811 0.61334 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37279-0.0154-0.44861-0.0912-0.19334-0.19333zm31.74-13.342c0-0.0665 0.252-0.31845 0.56-0.56 0.50754-0.39804 0.51886-0.38672 0.12082 0.12081-0.41804 0.53304-0.68082 0.70256-0.68082 0.43919zm-25.66-5.8578c0.231-0.0924 0.50701-0.0811 0.61334 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37279-0.0154-0.44861-0.0912-0.19334-0.19333zm11.52 0c0.231-0.0924 0.507-0.0811 0.61334 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37279-0.0154-0.44861-0.0912-0.19334-0.19333zm19.9 0.0978c0-0.0664 0.252-0.31845 0.56-0.56 0.50754-0.39804 0.51886-0.38672 0.12082 0.12081-0.41804 0.53304-0.68082 0.70256-0.68082 0.43919zm-35.26-0.41778c0.231-0.0924 0.50701-0.0811 0.61334 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37279-0.0154-0.44861-0.0912-0.19334-0.19333zm-121.7-1.3814c0.31856-0.352 0.65119-0.64 0.73919-0.64s-0.10064 0.288-0.41919 0.64c-0.31856 0.35199-0.65119 0.63999-0.73919 0.63999s0.10064-0.288 0.41919-0.63999zm34.02-1.1786c0.23099-0.0924 0.507-0.0811 0.61333 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37278-0.0154-0.44861-0.0912-0.19333-0.19333zm-10.26-0.32724c0.396-0.0763 1.044-0.0763 1.44 0s0.072 0.13868-0.72 0.13868-1.116-0.0624-0.72-0.13868zm4.16 0c0.396-0.0763 1.044-0.0763 1.44 0s0.072 0.13868-0.72 0.13868-1.116-0.0624-0.72-0.13868zm-24.24-2.135c0-0.0665 0.252-0.31845 0.56-0.56 0.50754-0.39804 0.51886-0.38672 0.12082 0.12082-0.41804 0.53304-0.68082 0.70255-0.68082 0.43918zm33.22-14.498c0.23099-0.0924 0.507-0.0811 0.61333 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37278-0.0154-0.44861-0.0912-0.19333-0.19333zm11.2 0c0.23099-0.0924 0.507-0.0811 0.61333 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37278-0.0154-0.44861-0.0912-0.19333-0.19333zm94.46-39.621c-1.3112-1.32-2.312-2.4-2.224-2.4s1.2328 1.08 2.544 2.4 2.312 2.4 2.224 2.4-1.2328-1.08-2.544-2.4zm12.631-13.04-2.2314-2.32 2.32 2.2314c2.1548 2.0725 2.4661 2.4086 2.2314 2.4086-0.0487 0-1.0927-1.044-2.32-2.32z" fill="#d8e3cd"/>
<path d="m60.319 206.64-30.079-30.16 30.16 30.079c16.588 16.544 30.16 30.116 30.16 30.16 0 0.0443-0.03629 0.0806-0.08064 0.0806s-13.616-13.572-30.16-30.16zm12.8-12.72-30.079-30.08 60.479-60.32-60.158 60.32 30.079 30.08c16.543 16.544 30.007 30.08 29.919 30.08s-13.696-13.536-30.239-30.08zm162.08 18.4c3.0762-3.08 5.6652-5.6 5.7532-5.6s-2.3569 2.52-5.4332 5.6c-3.0762 3.08-5.6651 5.6-5.7531 5.6s2.3569-2.52 5.4331-5.6zm59.36-34.08c1.2226-1.232 2.2948-2.24 2.3828-2.24s-0.84028 1.008-2.0628 2.24-2.2948 2.24-2.3828 2.24 0.84027-1.008 2.0628-2.24zm-180.06-16.219c0.23099-0.0924 0.507-0.0811 0.61333 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37278-0.0154-0.44861-0.0912-0.19333-0.19333zm-27.46-1.1822c0-0.0665 0.252-0.31845 0.56-0.56 0.50754-0.39804 0.51886-0.38672 0.12082 0.12082-0.41804 0.53304-0.68082 0.70255-0.68082 0.43918zm-26.72-39.879c16.543-16.544 30.151-30.08 30.239-30.08s-13.375 13.536-29.919 30.08-30.151 30.08-30.239 30.08 13.375-13.536 29.919-30.08zm234.08 27.04c-1.3112-1.32-2.312-2.4-2.224-2.4s1.2328 1.08 2.544 2.4 2.312 2.4 2.224 2.4-1.2328-1.08-2.544-2.4zm-59.523-34.32-5.5966-5.68 5.68 5.5966c3.124 3.0781 5.68 5.6341 5.68 5.68 0 0.22804-0.56381-0.31944-5.7634-5.5966z" fill="#c7d7b7"/>
<path d="m96.8 230.4c3.5167-3.52 6.466-6.4 6.554-6.4s-2.7173 2.88-6.234 6.4c-3.5167 3.52-6.466 6.4-6.554 6.4s2.7173-2.88 6.234-6.4zm149.76-29.44c3.1643-3.168 5.8253-5.76 5.9133-5.76s-2.429 2.592-5.5933 5.76c-3.1643 3.168-5.8253 5.76-5.9133 5.76s2.429-2.592 5.5933-5.76zm39.84-14.56c3.2524-3.256 5.9855-5.92 6.0735-5.92s-2.5011 2.664-5.7535 5.92-5.9855 5.92-6.0735 5.92 2.5011-2.664 5.7535-5.92zm-200.16-24.8c0.31856-0.352 0.65119-0.64 0.73919-0.64s-0.10064 0.288-0.41919 0.64c-0.31856 0.352-0.65119 0.64-0.73919 0.64s0.10064-0.288 0.41919-0.64zm199.84-22-5.9168-6 6 5.9168c3.3 3.2542 6 5.9542 6 6 0 0.22779-0.58598-0.34214-6.0832-5.9168zm-39.84-14.56-5.7567-5.84 5.84 5.7567c3.212 3.1662 5.84 5.7942 5.84 5.84 0 0.22792-0.57489-0.3308-5.9233-5.7567zm-149.44-27.84-6.397-6.48 6.48 6.397c6.0208 5.9437 6.6245 6.563 6.397 6.563-0.0456 0-2.9616-2.916-6.48-6.48z" fill="#bbcfa7"/>
<path d="m227.35 225.84-2.8733-2.96 2.96 2.8733c1.628 1.5803 2.96 2.9123 2.96 2.96 0 0.23234-0.37799-0.12415-3.0467-2.8733zm47.367-27.76c3.1643-3.168 5.8253-5.76 5.9133-5.76s-2.429 2.592-5.5933 5.76-5.8253 5.76-5.9133 5.76 2.429-2.592 5.5933-5.76zm-16.8-8.48c3.0762-3.08 5.6651-5.6 5.7531-5.6s-2.3569 2.52-5.4331 5.6c-3.0762 3.08-5.6651 5.6-5.7531 5.6s2.3569-2.52 5.4331-5.6zm-42.154-24.062c0.31135-0.0811 0.74335-0.0758 0.96 0.0119s-0.0381 0.15404-0.56609 0.14752c-0.528-7e-3 -0.70526-0.0782-0.39391-0.15938zm41.991-28.978-5.7567-5.84 5.84 5.7567c3.212 3.1662 5.84 5.7942 5.84 5.84 0 0.22792-0.57489-0.3308-5.9233-5.7567zm16.8-8.48-5.5966-5.68 5.68 5.5966c5.2771 5.1996 5.8246 5.7634 5.5966 5.7634-0.0459 0-2.6019-2.556-5.68-5.68zm-47.197-27.6c1.5767-1.584 2.9387-2.88 3.0267-2.88s-1.13 1.296-2.7067 2.88c-1.5767 1.584-2.9386 2.88-3.0266 2.88s1.13-1.296 2.7066-2.88z" fill="#abc493"/>
<path d="m233.59 232.08-3.3543-3.44 3.44 3.3543c1.892 1.8449 3.44 3.3929 3.44 3.44 0 0.23111-0.41019-0.15913-3.5257-3.3543zm31.846-24.72c1.93-1.936 3.5811-3.52 3.6691-3.52s-1.4191 1.584-3.3491 3.52c-1.93 1.936-3.5811 3.52-3.6691 3.52s1.4191-1.584 3.3491-3.52zm1.6-26.88c1.93-1.936 3.5811-3.52 3.6691-3.52s-1.4191 1.584-3.3491 3.52c-1.93 1.936-3.5811 3.52-3.6691 3.52s1.4191-1.584 3.3491-3.52zm-243.2-10.241-6.395-6.401 13.114-12.958-12.792 12.96 6.394 6.4c3.5167 3.52 6.322 6.4 6.234 6.4s-3.0378-2.8804-6.555-6.401zm215.36-2.879c0.31856-0.352 0.6512-0.64 0.7392-0.64s-0.10064 0.288-0.4192 0.64c-0.31855 0.352-0.65119 0.64-0.73919 0.64s0.10064-0.288 0.41919-0.64zm-25.034-1.8218c0.31135-0.0811 0.74335-0.0758 0.96 0.0119s-0.0381 0.15404-0.56609 0.14752c-0.528-7e-3 -0.70526-0.0782-0.39391-0.15938zm3.0339 0.01c0.22-0.0888 0.58-0.0888 0.8 0s0.04 0.16141-0.4 0.16141-0.62-0.0726-0.4-0.16141zm91.902-1.7941c0.36322-0.48186 0.33859-0.67215-0.16565-1.28l-0.59228-0.714 0.77796 0.71873c0.76362 0.70549 0.76668 0.72908 0.16565 1.28-0.58421 0.53551-0.59274 0.53529-0.18568-5e-3zm-42.067-17.914-3.5146-3.6 3.6 3.5145c3.3438 3.2644 3.7453 3.6855 3.5146 3.6855-0.047 0-1.667-1.62-3.6-3.6zm-1.6-26.88-3.5146-3.6 3.6 3.5145c3.3438 3.2644 3.7453 3.6855 3.5146 3.6855-0.047 0-1.667-1.62-3.6-3.6zm-31.84-24.64c3.1155-3.1951 3.5257-3.5854 3.5257-3.3543 0 0.04714-1.548 1.5951-3.44 3.44l-3.44 3.3543z" fill="#a2be87"/>
<path d="m252.64 220.16c5.1017-5.104 9.3479-9.28 9.4359-9.28s-4.0141 4.176-9.1159 9.28c-5.1017 5.104-9.3479 9.28-9.4359 9.28s4.0141-4.176 9.1159-9.28zm-51.74-35.739c0.231-0.0924 0.50701-0.0811 0.61334 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37279-0.0154-0.44861-0.0912-0.19334-0.19333zm76.538-14.261 6.8763-6.96-13.753-13.92 14.076 13.92-14.076 13.92zm25.282-0.08c3.2524-3.256 5.9855-5.92 6.0735-5.92s-2.5011 2.664-5.7535 5.92-5.9855 5.92-6.0735 5.92 2.5011-2.664 5.7535-5.92zm-90-4.5319c0.22-0.0888 0.58-0.0888 0.8 0s0.04 0.1614-0.4 0.1614-0.62-0.0726-0.4-0.1614zm5.76 0c0.22-0.0888 0.58-0.0888 0.8 0s0.04 0.1614-0.4 0.1614-0.62-0.0726-0.4-0.1614zm84.077-9.4681-5.7567-5.84 5.84 5.7567c3.212 3.1662 5.84 5.7942 5.84 5.84 0 0.22792-0.57489-0.3308-5.9233-5.7567zm-178.46-10.699c0.23099-0.0924 0.507-0.0811 0.61333 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37278-0.0154-0.44861-0.0912-0.19333-0.19333zm5.12 0c0.23099-0.0924 0.507-0.0811 0.61333 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37278-0.0154-0.44861-0.0912-0.19333-0.19333zm123.42-39.221-9.2779-9.36 9.36 9.2779c5.148 5.1029 9.36 9.3149 9.36 9.36 0 0.22615-0.81992-0.57952-9.4421-9.2779z" fill="#9dba81"/>
<path d="m54.08 200.16-36.319-36.32 72.798-72.798 12.639 12.639-60.157 60.16 60.155 60.158-6.2351 6.2412c-3.4293 3.4327-6.3087 6.2412-6.3987 6.2412-0.08998 0-16.507-16.344-36.483-36.32zm176.96 29.12-6.2358-6.242 59.835-59.838-59.835-59.838 6.2358-6.242c3.4297-3.4331 6.3089-6.2056 6.3982-6.1612 0.0893 0.04442 16.352 16.317 36.139 36.161l35.977 36.08-35.977 36.08c-19.787 19.844-36.05 36.116-36.139 36.161-0.0893 0.0444-2.9684-2.7281-6.3982-6.1612zm-37.92-45.013c-1.936-0.15604-5.608-0.70521-8.16-1.2204-7.7931-1.5732-13.244-3.4523-23.717-8.1752-10.711-4.8304-17.785-7.4369-26.043-9.5964-22.154-5.7933-41.97-4.0185-54.514 4.8825-1.8823 1.3357-1.9905 1.3746-1.4532 0.52292 4.4626-7.0736 12.261-14.305 19.886-18.439 13.152-7.1314 29.313-8.6657 46.643-4.4282 5.5956 1.3682 9.2745 2.5998 18.238 6.1054 15.59 6.0972 26.983 9.2531 39.396 10.913 5.9661 0.79796 17.43 0.97395 21.884 0.33596 8.4522-1.2106 15.772-3.5608 20.02-6.428 0.78079-0.52695 1.4196-0.8711 1.4196-0.76478 0 0.76372-4.4118 6.1173-8 9.7077-5.1772 5.1804-8.8644 7.8756-14.88 10.877-7.0557 3.5199-12.778 5.1039-20.766 5.7479-4.5607 0.36771-4.9067 0.36631-9.9535-0.0404z" fill="#86aa62"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.1 KiB