0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Mac】コマンドでJPEGを圧縮する方法

Posted at

jpegoptimを使用するとJPEGを圧縮できます。

インストール

以下のコマンドでインストールできます。

brew install jpegoptim

使い方

JPEG画像を最適化し、関連するデータをすべて保持します。

jpegoptim image1.jpeg image2.jpeg imageN.jpeg

JPEG画像を最適化し、不要なデータをすべて削除します。

jpegoptim --strip-all image1.jpeg image2.jpeg imageN.jpeg

出力画像の最大ファイルサイズを固定に強制します。

jpegoptim --size=250k image1.jpeg image2.jpeg imageN.jpeg
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?