Don't round and add opengraph logo.png
This commit is contained in:
parent
8fe9227dc2
commit
df84347aeb
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
. ../APKBUILD-data.template
|
. ../APKBUILD-data.template
|
||||||
|
|
||||||
pkgver=2022.04.01.01
|
pkgver=2022.04.01.02
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
makedepends="imagemagick"
|
makedepends="imagemagick"
|
||||||
source="logo.svg"
|
source="logo.svg"
|
||||||
@ -15,7 +15,8 @@ build() {
|
|||||||
sizes="120 180 192 512 880"
|
sizes="120 180 192 512 880"
|
||||||
for i in $sizes; do
|
for i in $sizes; do
|
||||||
msg "Scaling svg to $i"
|
msg "Scaling svg to $i"
|
||||||
magick -size "$i"x"$i" logo.svg \( +clone -threshold 101% -fill white -draw 'circle %[fx:int(w/2)],%[fx:int(h/2)] %[fx:int(w/2)],%[fx:80+int(h/2)]' \) -channel-fx '| gray=>alpha' logo-"$i".png
|
#magick -size "$i"x"$i" logo.svg \( +clone -threshold 101% -fill white -draw 'circle %[fx:int(w/2)],%[fx:int(h/2)] %[fx:int(w/2)],%[fx:80+int(h/2)]' \) -channel-fx '| gray=>alpha' logo-"$i".png
|
||||||
|
magick -size "$i"x"$i" logo.svg logo-"$i".png
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -25,6 +26,7 @@ package() {
|
|||||||
rx_install logo-180.png apple-touch-icon.png
|
rx_install logo-180.png apple-touch-icon.png
|
||||||
rx_install logo-192.png gitea-192.png
|
rx_install logo-192.png gitea-192.png
|
||||||
rx_install logo-512.png gitea-512.png
|
rx_install logo-512.png gitea-512.png
|
||||||
|
rx_install logo-512.png logo.png
|
||||||
rx_install logo-880.png gitea-lg.png
|
rx_install logo-880.png gitea-lg.png
|
||||||
|
|
||||||
rx_install logo.svg logo.svg
|
rx_install logo.svg logo.svg
|
||||||
|
Loading…
Reference in New Issue
Block a user