1
0
Fork 0
mirror of https://github.com/NeoCloud/NeoNetwork synced 2024-12-25 01:59:25 +08:00

makegraph.sh: use optipng to reduce nodes.png's size

This commit is contained in:
Neo_Chen 2020-03-15 20:07:09 +08:00
parent 3f0c60f40c
commit d1cb958745

View file

@ -7,3 +7,11 @@ if which dot 2>&1 > /dev/null ; then
else else
echo 'You need to install graphviz first' echo 'You need to install graphviz first'
fi fi
if [ "$1" != 'noopt' ]; then
if which optipng 2>&1 > /dev/null ; then
optipng -o7 -zm9 -v nodes.png
else
echo 'optipng is not present, not optimizing compression'
fi
fi