rem 環境によって変えてね
set im=C:\Progra~1\ImageMagick-6.3.7-Q16
%im%\convert.exe sf.jpg -quality 10 sample306.jpg
上記のバッチファイルでは、画質を10に設定しています(0-100の間で指定します)
元画像(sf.jpg)
出力画像(sample306.jpg)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCzCEoTY4uXPuFkXgnxORm8E7L5UX-BHJnInqFkLchcsRsTgrxGx-f29XrW2LyWq0bwMICAO0S613qiDh_nyrQ1VI6yeqZdB-eANfEclkKCU9wRXQ0mRCX8Ca8rITIw9Ez-i4t/s320/sample306.jpg)
qualityを取得するには、以下のコマンドを実行します。
%im%\identify.exe -format "%%Q" sample306.jpg
No comments:
Post a Comment