Last active
December 15, 2015 22:19
-
-
Save niraj-shah/5332600 to your computer and use it in GitHub Desktop.
Compress images to 1024x1024 if they are larger
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
# 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