ImageMagick: Crop 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 {} -crop 800x600+0+0 "crop_{}" \;

 

Related Snippets

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