Skip to content

Instantly share code, notes, and snippets.

@tmhpfnr
Last active August 29, 2015 14:06
Show Gist options
  • Save tmhpfnr/eaa2a59956ba26e3ce62 to your computer and use it in GitHub Desktop.
Save tmhpfnr/eaa2a59956ba26e3ce62 to your computer and use it in GitHub Desktop.
(lossless) image/sound compression
#
# png
#
optipng -c 4 -o7 *.png && advpng -z4 *png && advdef -z4 *.png
#
# jpeg
#
jpegoptim *.jpg --strip-all
#
# mp3
#
find . -name "*.mp3" | xargs lame -b32 -m m *.mp3 *.mp3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment