Resizing images with Bash

If the files have the extension .JPG

#!/bin/bash
for i in *.JPG; do convert $i -resize 10% $(basename $i .JPG).JPG; done

 

5/5 - (2 votes)

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top