
## ImageType enumeration

Specifies the type (format) of an image in a Microsoft Word document.


### Members

| Name | Description |
| --- | --- |
| NO_IMAGE | The is no image data. |
| UNKNOWN | An unknown image type or image type that cannot be directly stored inside a Microsoft Word document. |
| EMF | Windows Enhanced Metafile. |
| WMF | Windows Metafile. |
| PICT | Macintosh PICT. An existing image will be preserved in a document, but inserting new PICT images into a document is not supported. |
| JPEG | JPEG JFIF. |
| PNG | Portable Network Graphics. |
| BMP | Windows Bitmap. |
| EPS | Encapsulated PostScript. |
| WEB_P | WebP. |
| GIF | GIF |

### Examples

Shows how to add an image to a shape and check its type.

```python
doc = aw.Document()
builder = aw.DocumentBuilder(doc=doc)
img_shape = builder.insert_image(file_name=IMAGE_DIR + 'Logo.jpg')
self.assertEqual(aw.drawing.ImageType.JPEG, img_shape.image_data.image_type)
```

Shows how to read WebP image.

```python
doc = aw.Document(file_name=MY_DIR + 'Document with WebP image.docx')
shape = doc.get_child(aw.NodeType.SHAPE, 0, True).as_shape()
self.assertEqual(aw.drawing.ImageType.WEB_P, shape.image_data.image_type)
```

### See Also

* module [aspose.words.drawing](../)
* property [ImageData.image_type](../imagedata/image_type/)

