2011年11月26日 星期六

[PIC resize] convert


for f in *.jpg; do convert "$f" -resize 640x480 -strip -quality 86 "$f"; done



1.That will go through all .jpg-images in current directory

2.Resize them to fit 640x480 (while maintaining original aspect ratio)

3.Remove all EXIF data

4.Compress the images with 86% quality.



Reference :

http://www.imagemagick.org/script/index.php

0 意見:

張貼留言