jpegoptim → ImageOptim or ImageAlpha → ImageOptim を拡張子にわけてショートカットを割り当てて手軽にできる
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
png-jpeg-mini.workflow/Contents
README.md

README.md

workflow.png-jpeg-mini

jpegoptim → ImageOptim or ImageAlpha → ImageOptim を拡張子にわけてショートカットを割り当てて手軽にできる

for f in "$@"
do
	[ `basename "$f" .png` = `basename "$f"` ] || {
		/Applications/ImageAlpha.app/Contents/Resources/pngquant --speed 3 --force --ext .png 256 "$f"; open -a imageoptim "$f"

       	}

	[ `basename "$f" .jpg` = `basename "$f"` ] || {
		/usr/local/bin/jpegoptim --strip-all --max=40 "$f"; open -a imageoptim "$f"

       	}
done