ImageData

Overview

ImageData is a class in Aspose.Words FOSS for Python. Inherits from: BaseModel.

ImageData.from_mime(‘image/png’) returns the integer constant representing the PNG image type.

This class provides 1 method for working with ImageData objects in Python programs. Available methods include: from_mime. All public members are accessible to any Python application after installing the Aspose.Words FOSS for Python package. Properties: content_type, crop_bottom, crop_left, crop_right, crop_top, image_bytes, and 2 more.

Properties

NameTypeAccessDescription
content_typestrReadMIME content-type string derived from :attr:image_type.
source_full_namestrReadGets the source full name.
image_typeintReadGets the image type.
image_bytesbytesReadGets the image bytes.
crop_leftfloatReadGets the crop left.
crop_topfloatReadGets the crop top.
crop_rightfloatReadGets the crop right.
crop_bottomfloatReadGets the crop bottom.

Methods

SignatureDescription
from_mime(mime: str)intMap a MIME content-type string to an ImageType constant.

See Also

 English