0
0

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】コマンドでPNGを圧縮する方法

Posted at

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

インストール

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

brew install optipng

使い方

デフォルト設定でPNGを圧縮する。

optipng path/to/file.png

PNGを最適な圧縮率で圧縮する。

optipng -o7 path/to/file.png

PNGを最速で圧縮する。

optipng -o0 path/to/file.png

PNGを圧縮してインターレースを追加する。

optipng -i 1 path/to/file.png

PNGを圧縮し、すべてのメタデータ(ファイルのタイムスタンプを含む)を保存する。

optipng -preserve path/to/file.png

PNGを圧縮し、すべてのメタデータを削除する。

optipng -strip all path/to/file.png
0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?