BASH script for resize images using morgify
#!/bin/bash
FILES=/home/rafal/Pictures/Mockba/*
for f in $FILES
do
echo “resize $f “
cp $f $f”.bak”
mogrify -resize 50% $f
done
[ImageMagick] Batch resize images in a folder
Simple way to batch resize all images in a folder :
mogrify -resize 50% /home/user/dir_with_images/*
or
mogrify -resize 640x840 /home/user/dir_with_images/*