---
Product: psd
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/psd/python/psdimagewriter
---

# PsdImageWriter

## Overview

`PsdImageWriter` is a class in Aspose.PSD FOSS for Python.

Writes parsed PSD/PSB document state to a stream.

This class declares 1 method for PsdImageWriter objects in Python programs.
Available methods include: `save`.
Public members are accessible to any Python application after installing the Aspose.PSD FOSS for Python package.

## Methods

| Signature | Description |
|-----------|-------------|
| `save(document: PsdImageDocumentState, stream, leave_open: bool)` | Saves a parsed document state to a writable stream. |

## See Also

- [Aspose.PSD for Python — Enterprise API Reference](https://reference.aspose.com/psd/python-net/)