Last active
August 29, 2015 14:07
-
-
Save michilehr/98d2fdd749e98779862f to your computer and use it in GitHub Desktop.
Resize images by find and save with new name recursively with bash
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 . -name 'preview_image*-default-*' -print0 | xargs -0 -L 1 -I {} bash -c 'f="{}"; convert -compress JPEG -resize 238 "$f" "${f/-default-/-resp-}"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment