Last active
March 13, 2019 20:44
-
-
Save QuantenGhost/00474611546ccaa8313459dbcda05654 to your computer and use it in GitHub Desktop.
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
brew update && brew install imagemagick | |
mkdir med | |
cp *.j* med/ | |
cd med | |
for f in *.jpg; do convert $f -resize 1920x1080\> $f; done | |
cd .. | |
mkdir min | |
cp med/* min/ | |
cd min | |
for m in *.jpg; do convert $m -resize 400x400\> $m; done | |
cd .. | |
mkdir thumb | |
cp med/* thumb/ | |
cd thumb | |
for t in *.jpg; do convert $t -resize 125x125\> $t; done | |
cd .. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment