How to batch resize images in Ubuntu recursively within the terminal?
问题 I have multiple images stored in a set of organized folders. I need to re-size those images to a specific percentage recursively from their parent directory. I am running Ubuntu 11.10 and i prefer learning how to do that directly from the terminal. 回答1: You could use imagemagick. For instance, for resizing all the JPG images under the current directory to 50% of their original size, you could do: for f in `find . -name "*.jpg"` do convert $f -resize 50% $f.resized.jpg done The resulting files