diff options
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/convert-svgs-to-pngs.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/convert-svgs-to-pngs.sh b/contrib/convert-svgs-to-pngs.sh index 4a37feb..6e65222 100755 --- a/contrib/convert-svgs-to-pngs.sh +++ b/contrib/convert-svgs-to-pngs.sh @@ -53,7 +53,7 @@ do mkdir -p "${dir}/png" # Convert them - for svg in "${dir}/svg/"*; + for svg in "${dir}/svg/"*; do png=$(sed 's/svg/png/g' <<< "$svg"); echo "Converting $svg to $png with $CONVERSION_TOOL"; @@ -67,6 +67,8 @@ do else convertSvgToPng "$svg" "$png"; fi; + pngng -s1 < "$png" > "${png}".compact + mv "${png}".compact "$png" done; wait; |