.model.GifInfo

class model.gif_info.GifInfo(file)

Holds GIF file information related to its directory, graphical size and number of frames.

Initializer

model.GifInfo.__init__(self, file)

Initializes a new GifInfo object.

Parameters

file (str) – GIF file path


Location

/model/gif_info.py


Instance property

property GifInfo.display_size: model.units.Pixels
Returns

Current displaying GIF width and height as a named tuple of Pixels(x, y)

Return type

model.units.Pixels


Internal module functions

model.gif_info._get_resize_factor(gif_size: model.units.Pixels) float

DESCRIPTION

Parameters

gif_size (model.units.Pixels) – GIF file width and height as a named tuple of Pixels(x, y)

Returns

GIF display resize factor as a float value

Return type

float

model.gif_info._usable_area(default: float = 0.7) model.units.Pixels
Parameters

default (float) – Optional: the default display usable area as a float value.

Returns

The usable width and height of the smallest monitor as a named tuple of Pixels(x, y)

Return type

model.units.Pixels

Source code (on GitHub)