gimp-image-crop

Spencer Kimball & Peter Mattis

Description

Crop the image to the specified extents.

Help

This procedure crops the image so that it's new width and height are equal to the supplied parameters. Offsets are also provided which describe the position of the previous image's content. All channels and layers within the image are cropped to the new image extents; this includes the image selection mask. If any parameters are out of range, an error is returned.


Type

unknown

Parameters

Type Name Description
PF_IMAGE image The image
PF_INT new-width New image width: (0 < new_width <= width) (1 <= new-width <= 524288)
PF_INT new-height New image height: (0 < new_height <= height) (1 <= new-height <= 524288)
PF_INT offx X offset: (0 <= offx <= (width - new_width)) (offx >= 0)
PF_INT offy Y offset: (0 <= offy <= (height - new_height)) (offy >= 0)

Return

None