]> git.ktnx.net Git - mobile-ledger.git/commitdiff
use rsvg-convert (librsvg2) instead of convert (imagemagick) to create launcher icon...
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 15 May 2020 06:43:53 +0000 (06:43 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 16 May 2020 10:26:56 +0000 (13:26 +0300)
convert started to fail with

 convert-im6.q16: non-conforming drawing primitive definition `letter-spacing' @ error/draw.c/RenderMVGContent/4300

app/src/main/res/mipmap-hdpi/app_icon.png
app/src/main/res/mipmap-ldpi/app_icon.png
app/src/main/res/mipmap-mdpi/app_icon.png
app/src/main/res/mipmap-tvdpi/app_icon.png
app/src/main/res/mipmap-xhdpi/app_icon.png
app/src/main/res/mipmap-xxhdpi/app_icon.png
app/src/main/res/mipmap-xxxhdpi/app_icon.png
tools/populate-app-icon

index 7df4fa14b13a7f670afa82d5fad9deb835b2ecb6..7a7edc63a66975ee1a69ffea939d2e09e1f8e970 100644 (file)
Binary files a/app/src/main/res/mipmap-hdpi/app_icon.png and b/app/src/main/res/mipmap-hdpi/app_icon.png differ
index ed0d78c5da64d1baf98c04636e6707f600fc4ba4..9efa195e00915c417a631a8509b849d580cf4f8c 100644 (file)
Binary files a/app/src/main/res/mipmap-ldpi/app_icon.png and b/app/src/main/res/mipmap-ldpi/app_icon.png differ
index 4e88a6784a5519d9844f5cc6fccea9e202e05208..dcf946494608270459cb2916ed214e5bd4ad75bd 100644 (file)
Binary files a/app/src/main/res/mipmap-mdpi/app_icon.png and b/app/src/main/res/mipmap-mdpi/app_icon.png differ
index 8e8ed136b45ae256e96632822e395829fa8772ec..07218890e29d2fdd7f754dd4b59ac7ec3c77544e 100644 (file)
Binary files a/app/src/main/res/mipmap-tvdpi/app_icon.png and b/app/src/main/res/mipmap-tvdpi/app_icon.png differ
index a62a8dfa0ee1f5003391c4e329532d5d97c9d2da..5de8fea6af228a26ecf74b23bb00ab7df44d9cc5 100644 (file)
Binary files a/app/src/main/res/mipmap-xhdpi/app_icon.png and b/app/src/main/res/mipmap-xhdpi/app_icon.png differ
index 41fe6c430fba395fe1717c80fe06e6f756ec1026..2b7c1b0528159f8847ba11ef7ab78439f46b6db0 100644 (file)
Binary files a/app/src/main/res/mipmap-xxhdpi/app_icon.png and b/app/src/main/res/mipmap-xxhdpi/app_icon.png differ
index 1a12e024f50ae3fbc9b05739ee8c38b6f9cd0329..bf8f7cf49d7a0a43232a89519d67cd9f85800972 100644 (file)
Binary files a/app/src/main/res/mipmap-xxxhdpi/app_icon.png and b/app/src/main/res/mipmap-xxxhdpi/app_icon.png differ
index d7840dd6068173d85f938c2e6b8e19fa015a4000..a800531643b5bc4cdc3fff97fda3a9b676f3f750 100755 (executable)
@@ -13,9 +13,8 @@ gen_icons() {
         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"
+        rsvg-convert --background-color none "$ICON_ART" -w $size -h $size \
+            -o "$DST"
         optipng "$DST"
     done
 }