Skip to content

Instantly share code, notes, and snippets.

@adamli
Created October 29, 2017 00:40
Show Gist options
  • Select an option

  • Save adamli/a28d444894bd83c2e81b6e6f6c32972c to your computer and use it in GitHub Desktop.

Select an option

Save adamli/a28d444894bd83c2e81b6e6f6c32972c to your computer and use it in GitHub Desktop.
Batch resizing multiple images
for file in *.JPG; do mv "$file" "${file/.JPG/.jpg}"; done
mkdir gif
mv *.gif gif
convert '*[500x500]' -set filename:base "%[base]" "done2/%[filename:base].jpg"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment