First, make "resized" directory in your images. # mkdir resized Next using below command to resizing all jpg images in folder by 30% to resized folder. #find . -maxdepth 1 -iname "*.jpg" | xargs -L1 -I{} convert -resize 30% "{}" resized/"{}