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
| Name | Type | Access | Description |
|---|---|---|---|
content_type | str | Read | MIME content-type string derived from :attr:image_type. |
source_full_name | str | Read | Gets the source full name. |
image_type | int | Read | Gets the image type. |
image_bytes | bytes | Read | Gets the image bytes. |
crop_left | float | Read | Gets the crop left. |
crop_top | float | Read | Gets the crop top. |
crop_right | float | Read | Gets the crop right. |
crop_bottom | float | Read | Gets the crop bottom. |
Methods
| Signature | Description |
|---|---|
from_mime(mime: str) → int | Map a MIME content-type string to an ImageType constant. |