Skip to content

Instantly share code, notes, and snippets.

@vitalyfriedman
Created July 7, 2013 12:24
Show Gist options
  • Save vitalyfriedman/5943304 to your computer and use it in GitHub Desktop.
Save vitalyfriedman/5943304 to your computer and use it in GitHub Desktop.
Resizing JPEG images in a folder (two versions).
ls *.jpg|while read i;do convert $i -strip -interlace Plane -resize "500x" -unsharp 2x0.5+0.5+0 -quality 90 `basename $i .jpg`_small.jpg; convert $i -strip -interlace Plane -resize "1000x" -unsharp 2x0.5+0.5+0 -quality 90 `basename $i .jpg`_large.jpg; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment