Last active
August 29, 2015 14:04
-
-
Save marshyski/0a2561d97288290eded3 to your computer and use it in GitHub Desktop.
JPG conversion with ImageMagick
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
#!/bin/bash | |
cd /usr/share/nginx/html/test/assets/img/dest | |
for i in *.jpg; do convert $i -resize 400x350! $(basename $i .jpg).jpg; done | |
for i in *.jpg; do convert $i -strip -quality 85% $(basename $i .jpg).jpg; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment