ImageMagick: Rotate a batch of images using convert and the find command

 
# using a regular expression to find images such as "image01_abc.png", "image02_def.png", ...
find * -regextype "egrep" \
       -iregex 'image[0-9][0-9].*' \
       -exec convert {} -rotate "-90" "rotate_{}" \;

 

Related Snippets

•  ImageMagick: Rotate a batch of images using convert and a for loop
•  ImageMagick: Crop a batch of images using convert and the find command
•  ImageMagick: Crop a batch of images using convert and a for loop