Created
August 6, 2019 16:20
-
-
Save elfeffe/9c7804d26e4aa2d4759ee25b616f1690 to your computer and use it in GitHub Desktop.
Ubuntu resize images recursively if they are over 1mb
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
find . -type f -name "*.jpg" -size +1000k -exec mogrify -resize 1024x1024\> -strip -resample 80 {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment