Flags

Details

class Gimp.ExportCapabilities(value)

Bases: GObject.GFlags

The types of images and layers an export procedure can handle

CAN_HANDLE_RGB = 1

Handles RGB images

NEEDS_CROP = 1024

Needs to crop content to image bounds

CAN_HANDLE_LAYER_MASKS = 128

Handles layer masks

CAN_HANDLE_ALPHA = 16

Handles alpha channels

CAN_HANDLE_GRAY = 2

Handles grayscale images

CAN_HANDLE_LAYER_EFFECTS = 256

Handles layer effects

CAN_HANDLE_LAYERS = 32

Handles layers

CAN_HANDLE_INDEXED = 4

Handles indexed images

NEEDS_ALPHA = 512

Needs alpha channels

CAN_HANDLE_LAYERS_AS_ANIMATION = 64

Handles animation of layers

CAN_HANDLE_BITMAP = 8

Handles two-color indexed images

class Gimp.MetadataLoadFlags(value)

Bases: GLib.Flags

What metadata to load when importing images.

ALL = -1

Load all of the above

NONE = 0

Do not load the metadata

COMMENT = 1

Load the comment

RESOLUTION = 2

Load the resolution

ORIENTATION = 4

Load the orientation (rotation)

COLORSPACE = 8

Load the colorspace

class Gimp.MetadataSaveFlags(value)

Bases: GLib.Flags

What kinds of metadata to save when exporting images.

ALL = -1

Save all of the above

EXIF = 1

Save EXIF

COLOR_PROFILE = 16

Save the image’s color profile

New in version 2.10.10.

XMP = 2

Save XMP

COMMENT = 32

Save the image’s comment

New in version 3.0.

IPTC = 4

Save IPTC

THUMBNAIL = 8

Save a thumbnail of the image

class Gimp.ProcedureSensitivityMask(value)

Bases: GObject.GFlags

The cases when a Gimp.Procedure should be shown as sensitive.

DRAWABLE = 1

Handles image with one selected drawable.

NO_IMAGE = 16

Handles no image.

ALWAYS = 2147483647
DRAWABLES = 4

Handles image with several selected drawables.

NO_DRAWABLES = 8

Handles image with no selected drawables.