mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-13 06:31:01 +01:00
b6ed251c88
- Camera - CO2 - Flow - Gas - Line (decline/incline/stagnation) - Microphone - Motion - Move - Pressure - Rain - Signal (0-4) - Smoke - Television (on/off) - Zoom
25 lines
388 B
Bash
Executable File
25 lines
388 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Minify .png files using imageoptim.
|
|
#
|
|
# Can be installed with NPM.
|
|
# npm install -g imageoptim-cli
|
|
#
|
|
# Note: The GUI application also has to be installed.
|
|
# brew cask install imageoptim
|
|
#
|
|
|
|
if type imageoptim &>/dev/null; then
|
|
|
|
if [ "$1" != '' ] ; then
|
|
|
|
for file in $1*.png; do
|
|
echo $file | imageoptim
|
|
done
|
|
|
|
else
|
|
imageoptim -d "$(dirname $0)"
|
|
fi
|
|
|
|
fi
|