Is there a way to adjust all image sizes in a directory?
If I set the max size to 800x600 it will make larger ones smaller and leave smaller ones at their original size.
for img in *.png; do
convert "$img" "800x600>" $(basename "$img" .png)_new.png
done
convert
is from ImageMagick. ">" says it's only resized if larger. See here for its other options.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With