|
@@ -0,0 +1,20 @@
|
|
|
+#!/bin/bash
|
|
|
+set -euo pipefail
|
|
|
+for i in clip goto upload
|
|
|
+do
|
|
|
+ (
|
|
|
+ cd "rest/static/$i"
|
|
|
+ for x in 48 72 96 144 192 512
|
|
|
+ do
|
|
|
+ convert \
|
|
|
+ -background transparent \
|
|
|
+ -transparent white \
|
|
|
+ -density 400 icon.svg \
|
|
|
+ -geometry "${x}x${x}" \
|
|
|
+ -define png:compression-level=9 \
|
|
|
+ -define png:compression-filter=4 \
|
|
|
+ -strip "$x".png \
|
|
|
+ && : "Use ImageMagick to convert SVG to PNG"
|
|
|
+ done
|
|
|
+ )
|
|
|
+done
|