mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-13 14:41:00 +01:00
22 lines
345 B
Plaintext
22 lines
345 B
Plaintext
|
#!/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
|