Last active
July 31, 2016 02:02
-
-
Save eugenius1/5904ea564f3d6925f69d9e01f9185b84 to your computer and use it in GitHub Desktop.
Compress all JPG's in a folder to another folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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