Paper Office
paper-docxAPI referenceimage.tiff

Tiff

paper-docx 0.2.0 API reference

Image header parser for TIFF images.

Handles both big and little endian byte ordering.

Attributes

content_type

attributecontent_type

Return the MIME type of this TIFF image, unconditionally the string image/tiff.

default_ext

attributedefault_ext

Default filename extension, always 'tiff' for TIFF 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 a Tiff instance containing the properties of the TIFF image in stream.

paramstream

On this page