LoginSignup
5
5

More than 5 years have passed since last update.

画像ファイルの容量を小さくする(サイズ縮小/グレースケール化)

Last updated at Posted at 2012-03-16
resize.sh
# jpgファイルを縦幅1024pxに縮小して上書き保存
mogrify -resize x1024 -unsharp 2x1.4+0.5+0 -verbose *.jpg

# pngファイルを横幅1024pxに縮小して上書き保存
mogrify -resize 1024x -unsharp 2x1.4+0.5+0 -verbose *.png

# pngファイルを80%に縮小して上書き保存
mogrify -resize 80% -unsharp 2x1.4+0.5+0 -verbose *.png
grayscale.sh
# pngファイルをグレースケールへ変換して上書き保存
mogrify -colorspace grayscale -verbose *.png
5
5
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
5
5