]> git.ktnx.net Git - mobile-ledger.git/blobdiff - tools/populate-app-icon
no need for gravity, only one edge is constrained anyway
[mobile-ledger.git] / tools / populate-app-icon
index d7840dd6068173d85f938c2e6b8e19fa015a4000..c796b825b9546229d1a6f2fa111ee54d070041f8 100755 (executable)
@@ -12,10 +12,9 @@ gen_icons() {
     while read size name; do
         DST_DIR="$RES_DIR/mipmap-$name"
         mkdir -p "$DST_DIR"
-        DST="$DST_DIR/app_icon.png"
-        convert -background none "$ICON_ART" -scale ${size}x${size} \
-            -antialias -strip \
-            "$DST"
+        DST="$DST_DIR/ic_launcher.png"
+        rsvg-convert --background-color none "$ICON_ART" -w $size -h $size \
+            -o "$DST"
         optipng "$DST"
     done
 }