Skip to content

Instantly share code, notes, and snippets.

@yglodt
Created June 8, 2018 09:26
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 yglodt/f77aad61206677f7afb8c3eccc02baba to your computer and use it in GitHub Desktop.
Save yglodt/f77aad61206677f7afb8c3eccc02baba to your computer and use it in GitHub Desktop.
Resize jpegs with fixed width
#!/bin/bash
mkdir -p small
for f in *.jpg; do
echo $f;
convert "$f" -quality 75 -resize 1000x "small/$f";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment