|
|
Batch resize images using the command line in Linux - Linux
|
Views : 537
|
|
Tagged in : Linux
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
Batch resize images using the command line in Linux
If you have a ton of images that need resizing, you can do it all with the imagemagick package:
cd /home/user/images
mkdir resized_images
cp /home/user/images/* /home/user/images/resized_images
Now that you have a copy of the files in resized_images, time to resize them all:
mogrify -resize 800 *.jpg
This will resize them all to a width of 800px while keeping the aspect ratio. If you want a fixed image size, you can specify it like this:
mogrify -resize 800×600! *.jpg |
|
By - Geethalakshmi, On - 2010-09-05 |
|
|
|