mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-12-25 07:45:34 +01:00
Enable optipng compression (without indexing, for GRUB support)
This commit is contained in:
parent
2b12527007
commit
e6dcf151d4
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
INKSCAPE="/usr/bin/inkscape"
|
INKSCAPE="/usr/bin/inkscape"
|
||||||
|
OPTIPNG="/usr/bin/optipng"
|
||||||
|
|
||||||
if [[ "$1" == "select" ]]; then
|
if [[ "$1" == "select" ]]; then
|
||||||
EXPORT_TYPE="select"
|
EXPORT_TYPE="select"
|
||||||
@ -39,6 +40,7 @@ while read -r i; do
|
|||||||
"--export-dpi=$EXPORT_DPI" \
|
"--export-dpi=$EXPORT_DPI" \
|
||||||
"--export-id-only" \
|
"--export-id-only" \
|
||||||
"--export-filename=$ASSETS_DIR/$i.png" "$SRC_FILE" >/dev/null
|
"--export-filename=$ASSETS_DIR/$i.png" "$SRC_FILE" >/dev/null
|
||||||
|
$OPTIPNG -strip all -nc "$ASSETS_DIR/$i.png"
|
||||||
fi
|
fi
|
||||||
done < "$INDEX"
|
done < "$INDEX"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user