From e6dcf151d404971562f7b196af4a0d4b8a5c9b1f Mon Sep 17 00:00:00 2001 From: stuarthayhurst Date: Sat, 7 Aug 2021 10:07:05 +0100 Subject: [PATCH] Enable optipng compression (without indexing, for GRUB support) --- assets/render-assets.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/render-assets.sh b/assets/render-assets.sh index 5c8c44e..47741d8 100755 --- a/assets/render-assets.sh +++ b/assets/render-assets.sh @@ -1,6 +1,7 @@ #!/bin/bash INKSCAPE="/usr/bin/inkscape" +OPTIPNG="/usr/bin/optipng" if [[ "$1" == "select" ]]; then EXPORT_TYPE="select" @@ -39,6 +40,7 @@ while read -r i; do "--export-dpi=$EXPORT_DPI" \ "--export-id-only" \ "--export-filename=$ASSETS_DIR/$i.png" "$SRC_FILE" >/dev/null + $OPTIPNG -strip all -nc "$ASSETS_DIR/$i.png" fi done < "$INDEX"