Skip to content

Instantly share code, notes, and snippets.

@eugenius1
Last active July 31, 2016 02:02
Show Gist options
  • Save eugenius1/5904ea564f3d6925f69d9e01f9185b84 to your computer and use it in GitHub Desktop.
Save eugenius1/5904ea564f3d6925f69d9e01f9185b84 to your computer and use it in GitHub Desktop.
Compress all JPG's in a folder to another folder
# http://www.imagemagick.org/script/command-line-processing.php#geometry
# http://stackoverflow.com/questions/7261855/recommendation-for-compressing-jpg-files-with-imagemagick
# run from raw/
cd raw/
for pic in img/covers/*.jpg;
do convert -strip -quality 80% -interlace Plane -gaussian-blur 0.05 -resize "1920>" "$pic" "../$pic";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment