Method

GimpImageautocrop

Declaration [src]

gboolean
gimp_image_autocrop (
  GimpImage* image,
  GimpDrawable* drawable
)

Description [src]

Remove empty borders from the image

Remove empty borders from the image based on empty borders of the input drawable.

The input drawable serves as a base for detecting cropping extents (transparency or background color). With a NULL input drawable, the image itself will serve as a base for detecting cropping extents.

Parameters

drawable

Type: GimpDrawable

Input drawable.

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: gboolean

TRUE on success.