remove background in generated images

This commit is contained in:
tastytea 2022-06-12 22:57:28 +02:00
parent dd3121e47f
commit b9d46af4d3
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 6 additions and 1 deletions

View File

@ -20,5 +20,10 @@ mkdir -p ${ext}
for svg in svg/*.svg; do
local target=${svg##*/}
target=${ext}/${target%.*}.${ext}
convert ${svg} -trim -resize ${size} -quality 100 -verbose ${target}
convert -verbose \
-background none \
-trim \
-resize ${size} \
-quality 100 \
${svg} ${target}
done