Use the best optimization options for faster skin generation

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk 2021-08-25 19:54:32 +02:00 committed by Alexander Borsuk
parent a274773b42
commit 61e7d83eb1

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail
if ! command -v optipng &> /dev/null
@ -111,9 +111,9 @@ rm -rf "$OMIM_PATH"/data/resources-{*}
rm -rf "$OMIM_PATH"/data/resources-*_design
for i in mdpi hdpi xhdpi xxhdpi xxxhdpi 6plus; do
optipng -o7 "$OMIM_PATH"/data/resources-${i}_clear/symbols.png
optipng -o7 "$OMIM_PATH"/data/resources-${i}_dark/symbols.png
for i in mdpi hdpi xhdpi xxhdpi xxxhdpi 6plus; do
optipng -zc9 -zm8 -zs0 -f0 "$OMIM_PATH"/data/resources-${i}_clear/symbols.png
optipng -zc9 -zm8 -zs0 -f0 "$OMIM_PATH"/data/resources-${i}_dark/symbols.png
done
for i in mdpi hdpi xhdpi xxhdpi xxxhdpi 6plus; do