Skip to content

Instantly share code, notes, and snippets.

@karltaylor
Created August 9, 2016 11:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karltaylor/d398cb7f08facf038c075650ef4997c1 to your computer and use it in GitHub Desktop.
Save karltaylor/d398cb7f08facf038c075650ef4997c1 to your computer and use it in GitHub Desktop.
Bash script to resize multiple images at once.
for i in *.jpg; do convert $i -resize 1472x983 $i; done
@karltaylor
Copy link
Author

To keep aspect ratio all you have to do is declare the width first.

for i in *.jpg; do convert $i -resize 1623 $i; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment