GExiv2.PreviewProperties

g GExiv2.PreviewProperties GExiv2.PreviewProperties GObject.Object GObject.Object GObject.Object->GExiv2.PreviewProperties

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_extension ()

get_height ()

get_mime_type ()

get_size ()

get_width ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class GExiv2.PreviewProperties(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GExiv2.PreviewPropertiesClass

Properties of a preview image.

Metadata can contain multiple preview images. [class`GExiv2`.PreviewProperties] are used to describe the available image without the need of fetching the whole image from the metadata.

get_extension()[source]
Returns:

The recommended file extension for the preview image.

Return type:

str

Get the recommended file extension for the preview image.

get_height()[source]
Returns:

The preview image’s display height in pixels.

Return type:

int

Get the preview image’s display height in pixels.

get_mime_type()[source]
Returns:

The preview image’s MIME type.

Return type:

str

Get the preview image’s content-type.

get_size()[source]
Returns:

The preview image size in bytes.

Return type:

int

Returns the size of the preview image in bytes.

get_width()[source]
Returns:

The preview image’s display width in pixels.

Return type:

int

Get the preview image’s display width in pixels