Skip to content

Instantly share code, notes, and snippets.

Avatar

Trifo Tsantsarov trifo13

View GitHub Profile
View bulk-scale-images.sh
#!/bin/bash
# Max Width
WIDTH=1200
# Max Height
HEIGHT=800
# Resize .jpg or .png to either height or width, preserve aspect ration:
find . -type f \( -name "*.jpg" -o -name "*.png" \) -exec convert \{} -verbose -resize $WIDTHx$HEIGHT\> \{} \;