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

# CompressionMethod

## Overview

`CompressionMethod` is an enum in Aspose.PSD FOSS for Python.

Defines the compression methods used for image data in PSD files.

This enumeration defines 4 values: `RAW`, `RLE`, `ZIP_WITHOUT_PREDICTION`, `ZIP_WITH_PREDICTION`.

## Values

| Value | Description |
|-------|-------------|
| `RAW` |  |
| `RLE` |  |
| `ZIP_WITHOUT_PREDICTION` |  |
| `ZIP_WITH_PREDICTION` |  |

## See Also

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