---
name: "batch_crop"
section: "1"
platform: "linux"
package: "libvips-tools"
version: "8.10.5-2"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/batch_crop"
---

# batch\_crop(1)

crop a set of images

## NAME

batch\_crop  - crop a set of images

## SYNOPSIS

**batch\_crop left top width height image1 image2 ...**

## DESCRIPTION

The area defined by the rectangle left, top, width, height is cropped out of each of the images and saved in a file of the same name, but prefixed by "crop\_".

For example:

  batch\_crop 10 10 100 100 fred.jpg jim.png

will make two images, crop\_fred.jpg and crop\_jim.png, each of 100 by 100 pixels, taken from the corresponding input images.

## RETURN VALUE

returns 0 on success and non-zero on error.

## SEE ALSO

[vipsheader(1)](/vipsheader/1.md), [im\_vips2tiff(3)](/im_vips2tiff/3.md), [im\_vips2jpeg(3)](/im_vips2jpeg/3.md), [im\_vips2png(3)](/im_vips2png/3.md), [im\_vips2ppm(3)](/im_vips2ppm/3.md)
