---
Product: Aspose.Cells
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/python/picturexmlsaver
---

# PictureXmlSaver

## Overview

`PictureXmlSaver` is a class in Aspose.Cells FOSS for Python.

Handles writing picture-related drawing/media XML payloads.

This class declares 6 methods for PictureXmlSaver objects in Python programs.
Available methods include: `__init__`, `collect_picture_refs`, `format_picture_anchors_xml`, `format_picture_relationships_xml`, `get_extra_content_type_overrides`, `image_content_type_for_extension`.
Public members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package.

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(escape_xml)` | Calls __init__(escape_xml) on this PictureXmlSaver instance. |
| `collect_picture_refs(zipf, worksheet, sheet_num, write_part_once)` | Calls collect_picture_refs(zipf, worksheet, sheet_num, write_part_once) on this PictureXmlSaver instance. |
| `format_picture_anchors_xml(picture_refs, chart_rel_count)` | Calls format_picture_anchors_xml(picture_refs, chart_rel_count) on this PictureXmlSaver instance. |
| `format_picture_relationships_xml(picture_refs, chart_rel_count)` | Calls format_picture_relationships_xml(picture_refs, chart_rel_count) on this PictureXmlSaver instance. |
| `get_extra_content_type_overrides(workbook)` | Calls get_extra_content_type_overrides(workbook) on this PictureXmlSaver instance. |
| `image_content_type_for_extension(extension)` | Calls image_content_type_for_extension(extension) on this PictureXmlSaver instance. |

## See Also

- [Aspose.Cells for Python — Enterprise API Reference](https://reference.aspose.com/cells/python-java/)