openhab-core/bundles/org.openhab.ui.iconset.classic/icons/_iconminify
Kai Kreuzer a5b86617a6 initial commit of openhab core components
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2015-12-26 23:22:23 +01:00

22 lines
345 B
Bash
Executable File

#!/bin/sh
#
# Minify .png files using imageoptim.
#
# Can be installed with NPM. (Note: You must already have the GUI application installed.)
# npm install -g imageoptim-cli
#
if hash imageoptim; then
if [ "$1" != '' ] ; then
for file in $1*.png; do
echo $file | imageoptim
done
else
imageoptim -d `dirname $0`
fi
fi