Skip to content

Instantly share code, notes, and snippets.

@LeiHao0
Last active November 2, 2019 08:31
Show Gist options
  • Save LeiHao0/18b4af1ea400ba02f7622dbce9ab90bc to your computer and use it in GitHub Desktop.
Save LeiHao0/18b4af1ea400ba02f7622dbce9ab90bc to your computer and use it in GitHub Desktop.
name="xxx"
i=0
for f in *.jpeg
do convert -resize 1440x -strip "$f" "$name$(printf "%02d\n" $i).jpg"
i=$(($i+1))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment