1. Install software
- sudo apt-get install imagemagick
2. Use Command. The command mogrify overwrites the original files with the resized images:
- mogrify -resize 50% *.jpg # keep image aspect ratio
- mogrify -resize 320x240 *.jpg # keep image aspect ratio
- mogrify -resize 320x240! *.png # don't keep image aspect ratio
- mogrify -resize x240 *.png # don't keep image aspect ratio
- mogrify -resize 320x *.png # don't keep image aspect ratio
https://askubuntu.com/questions/1164/how-to-easily-resize-images-via-command-line
ไม่มีความคิดเห็น:
แสดงความคิดเห็น