Skip to content

Instantly share code, notes, and snippets.

@niraj-shah niraj-shah/mogrify.sh
Last active Dec 15, 2015

Embed
What would you like to do?
Compress images to 1024x1024 if they are larger
# Resize images larger than 1024x1024
sudo mogrify -verbose -resize '1024x1024>' image.jpg
# Resize all images to 1024x1024
sudo mogrify -verbose -resize '1024x1024' image.jpg
# Resize all JPEG images larger than 1024x1024
sudo mogrify -verbose -resize '1024x1024>' *.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.