mirror of
https://github.com/NeoCloud/NeoNetwork
synced 2024-11-22 16:00:41 +08:00
makegraph.sh: use optipng to reduce nodes.png's size
This commit is contained in:
parent
3f0c60f40c
commit
d1cb958745
1 changed files with 8 additions and 0 deletions
|
@ -7,3 +7,11 @@ if which dot 2>&1 > /dev/null ; then
|
|||
else
|
||||
echo 'You need to install graphviz first'
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue