But it's easy to create a shell script:
#!/bin/shSince I had images ending with .JPG extension in capital letters, I added a second loop:
mkdir -p small
for i in *.jpg; do
echo $i;
convert $i -resize 1000x small/$(basename $i .jpg).jpg;
done
for i in *.JPG; do
echo $i;
convert $i -resize 1000x small/$(basename $i .JPG).jpg;
done
Inspired by this question on stack overflow, and the mkdir complain corrected by looking at this question.
No comments:
Post a Comment