Paper Office
paper-docxAPI referenceimage.gif

Gif

paper-docx 0.2.0 API reference

Image header parser for GIF images.

Note that the GIF format does not support resolution (DPI) information. Both horizontal and vertical DPI default to 72.

Attributes

content_type

attributecontent_type

MIME content type for this image, unconditionally image/gif for GIF images.

default_ext

attributedefault_ext

Default filename extension, always 'gif' for GIF images.

horz_dpi

attributehorz_dpi

Integer dots per inch for the width of this image.

Defaults to 72 when not present in the file, as is often the case.

px_height

attributepx_height

The vertical pixel dimension of the image.

px_width

attributepx_width

The horizontal pixel dimension of the image.

vert_dpi

attributevert_dpi

Integer dots per inch for the height of this image.

Defaults to 72 when not present in the file, as is often the case.

Functions

from_stream

funcfrom_stream(stream)

Return Gif instance having header properties parsed from GIF image in stream.

paramstream

On this page