Vips.Operation

g GObject.Object GObject.Object Vips.Object Vips.Object GObject.Object->Vips.Object Vips.Operation Vips.Operation Vips.Object->Vips.Operation

Subclasses:

Vips.Foreign

Methods

Inherited:

Vips.Object (27), GObject.Object (37)

Structs:

Vips.ObjectClass (1), GObject.ObjectClass (5)

class

block_set (name, state)

class

new (name)

get_flags ()

invalidate ()

Virtual Methods

Inherited:

Vips.Object (9), GObject.Object (7)

do_get_flags ()

do_invalidate ()

Properties

Inherited:

Vips.Object (2)

Signals

Inherited:

Vips.Object (4), GObject.Object (1)

Name

Short Description

invalidate

Fields

Inherited:

Vips.Object (4), GObject.Object (1)

Name

Type

Access

Description

found_hash

bool

r

hash

int

r

parent_instance

Vips.Object

r

pixels

int

r

Class Details

class Vips.Operation(**kwargs)
Bases:

Vips.Object

Abstract:

Yes

Structure:

Vips.OperationClass

classmethod block_set(name, state)
Parameters:
  • name (str) – set block state at this point and below

  • state (bool) – the block state to set

Set the block state on all operations in the libvips class hierarchy at name and below.

For example:

vips_operation_block_set("VipsForeignLoad", TRUE);
vips_operation_block_set("VipsForeignLoadJpeg", FALSE);

Will block all load operations, except JPEG.

Use vips -l at the command-line to see the class hierarchy.

This call does nothing if the named operation is not found.

See also: Vips.block_untrusted_set().

classmethod new(name)
Parameters:

name (str) – nickname of operation to create

Returns:

the new operation.

Return type:

Vips.Operation

Return a new Vips.Operation with the specified nickname. Useful for language bindings.

You’ll need to set any arguments and build the operation before you can use it. See vips_call() for a higher-level way to make new operations.

get_flags()
Returns:

0 on success, or -1 on error.

Return type:

Vips.OperationFlags

Returns the set of flags for this operation.

invalidate()
do_get_flags() virtual
Returns:

0 on success, or -1 on error.

Return type:

Vips.OperationFlags

Returns the set of flags for this operation.

do_invalidate() virtual

Signal Details

Vips.Operation.signals.invalidate(operation)
Signal Name:

invalidate

Flags:

RUN_LAST

Parameters:

operation (Vips.Operation) – The object which received the signal