Skip to content

Instantly share code, notes, and snippets.

@ko31
Created April 7, 2015 13:21
Show Gist options
  • Save ko31/bc95297309c64a2b4414 to your computer and use it in GitHub Desktop.
Save ko31/bc95297309c64a2b4414 to your computer and use it in GitHub Desktop.
【Linux】jpegoptimコマンドサンプル
品質80%で圧縮
$ jpegoptim --max=80 image.jpg
画像のメタ情報を全て削除し、品質50%で圧縮
$ jpegoptim --strip-all --max=50 image.jpg
ディレクトリ内の全てのjpg画像を圧縮
$ jpegoptim --max=80 *.jpg
保存先ディレクトリを指定して圧縮
$ jpegoptim --max=80 *.jpg --dest=/path/to/dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment