forge-avatar-sync: rasterize SVG at 512px

This commit is contained in:
damocles 2026-05-21 22:37:08 +02:00 committed by Mara
parent 94f5f53ca9
commit 2d3a87f545

View file

@ -454,7 +454,7 @@
TOKEN=$(cat "$TOKEN_FILE")
# Rasterize SVG → PNG (Forgejo's Go image library can't decode SVG).
PNG=$(mktemp --suffix=.png)
if ! rsvg-convert -f png -w 256 -h 256 "$ICON" -o "$PNG" 2>/dev/null; then
if ! rsvg-convert -f png -w 512 -h 512 "$ICON" -o "$PNG" 2>/dev/null; then
echo "forge-avatar-sync: rsvg-convert failed; skipping"
rm -f "$PNG"
exit 0