Skip to content

Instantly share code, notes, and snippets.

@samtay
Created December 10, 2016 00:40
Show Gist options
  • Save samtay/5abc45a72491e4254c5acf9595e6b47b to your computer and use it in GitHub Desktop.
Save samtay/5abc45a72491e4254c5acf9595e6b47b to your computer and use it in GitHub Desktop.
Resize images for Expo Trade Exhibit
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