From: Damyan Ivanov Date: Fri, 15 May 2020 06:43:53 +0000 (+0000) Subject: use rsvg-convert (librsvg2) instead of convert (imagemagick) to create launcher icon... X-Git-Tag: v0.14.0~98 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;ds=inline;h=798d4ca3dd5dda7d5ade70d82c7d9b749a0f475d;p=mobile-ledger.git use rsvg-convert (librsvg2) instead of convert (imagemagick) to create launcher icon PNGs from the source SVG convert started to fail with convert-im6.q16: non-conforming drawing primitive definition `letter-spacing' @ error/draw.c/RenderMVGContent/4300 --- diff --git a/app/src/main/res/mipmap-hdpi/app_icon.png b/app/src/main/res/mipmap-hdpi/app_icon.png index 7df4fa14..7a7edc63 100644 Binary files a/app/src/main/res/mipmap-hdpi/app_icon.png and b/app/src/main/res/mipmap-hdpi/app_icon.png differ diff --git a/app/src/main/res/mipmap-ldpi/app_icon.png b/app/src/main/res/mipmap-ldpi/app_icon.png index ed0d78c5..9efa195e 100644 Binary files a/app/src/main/res/mipmap-ldpi/app_icon.png and b/app/src/main/res/mipmap-ldpi/app_icon.png differ diff --git a/app/src/main/res/mipmap-mdpi/app_icon.png b/app/src/main/res/mipmap-mdpi/app_icon.png index 4e88a678..dcf94649 100644 Binary files a/app/src/main/res/mipmap-mdpi/app_icon.png and b/app/src/main/res/mipmap-mdpi/app_icon.png differ diff --git a/app/src/main/res/mipmap-tvdpi/app_icon.png b/app/src/main/res/mipmap-tvdpi/app_icon.png index 8e8ed136..07218890 100644 Binary files a/app/src/main/res/mipmap-tvdpi/app_icon.png and b/app/src/main/res/mipmap-tvdpi/app_icon.png differ diff --git a/app/src/main/res/mipmap-xhdpi/app_icon.png b/app/src/main/res/mipmap-xhdpi/app_icon.png index a62a8dfa..5de8fea6 100644 Binary files a/app/src/main/res/mipmap-xhdpi/app_icon.png and b/app/src/main/res/mipmap-xhdpi/app_icon.png differ diff --git a/app/src/main/res/mipmap-xxhdpi/app_icon.png b/app/src/main/res/mipmap-xxhdpi/app_icon.png index 41fe6c43..2b7c1b05 100644 Binary files a/app/src/main/res/mipmap-xxhdpi/app_icon.png and b/app/src/main/res/mipmap-xxhdpi/app_icon.png differ diff --git a/app/src/main/res/mipmap-xxxhdpi/app_icon.png b/app/src/main/res/mipmap-xxxhdpi/app_icon.png index 1a12e024..bf8f7cf4 100644 Binary files a/app/src/main/res/mipmap-xxxhdpi/app_icon.png and b/app/src/main/res/mipmap-xxxhdpi/app_icon.png differ diff --git a/tools/populate-app-icon b/tools/populate-app-icon index d7840dd6..a8005316 100755 --- a/tools/populate-app-icon +++ b/tools/populate-app-icon @@ -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 }