Created
February 25, 2021 23:22
-
-
Save wyattearp/055fcf179befdfc80fa91559d85b6a3b to your computer and use it in GitHub Desktop.
Quick script to batch convert a bunch of images with `convert` auto-orient
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -p out | |
mkdir -p bak | |
for i in `ls -1 *.jpg`; do | |
cp -v $i bak/$i; | |
convert $i -auto-orient out/$i; | |
done | |
mv out/* . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment