Paper Office
paper-docxAPI referenceimage.image

BaseImageHeader

paper-docx 0.2.0 API reference

Base class for image header subclasses like Jpeg and Tiff.

BaseImageHeader(px_width: int, px_height: int, horz_dpi: int, vert_dpi: int)

Attributes

content_type

attributecontent_typestr

Abstract property definition, must be implemented by all subclasses.

default_ext

attributedefault_extstr

Default filename extension for images of this type.

An abstract property definition, must be implemented by all subclasses.

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.

On this page