CROPTOOL_CROP(1) General Commands Manual CROPTOOL_CROP(1)

croptool_cropsimple image cropping tool

croptool_crop <width>x<height>+<x>+<y> <source filename> [destination filename]

croptool_crop crops the given source filename to the dimensions specified, where width and height are the width and height of the cropping rectangle and x and y specify the top left corner of the cropping rectangle. If a destination filename is given, the cropped image is written to this file instead of modifying the source image in-place. This program is meant primarily as a companion to croptool(1).

Note that metadata such as EXIF data is currently not preserved. If preserving such data is necessary, consider using the commands provided by ImageMagick(1) instead. The same goes for cases where it is necessary to specify options such as the JPEG compression level that croptool_crop does not support.

The croptool_crop utility exits 0 on success, and >0 if an error occurs.

convert(1), croptool(1), ImageMagick(1), mogrify(1)

lumidify <nobody@lumidify.org>

The image format of the cropped image is determined by the format of the source image, even if the destination file has a different ending.

At least some versions of Imlib2 seem to have issues with saving gif files.

July 12, 2026