Created
December 10, 2016 00:40
-
-
Save samtay/5abc45a72491e4254c5acf9595e6b47b to your computer and use it in GitHub Desktop.
Resize images for Expo Trade Exhibit
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
cd ~/images-directory | |
mkdir resized | |
for f in *.png; do | |
convert $f -resize 800x600 -gravity center -background "rgba(0,0,0,0)" -extent 800x600 resized/$f | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment