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

# Aspose.PSD FOSS for Python

API reference for **Aspose.PSD FOSS for Python**. 64 public types organized by module.

## Core API

| Class | Description |
|---|---|
| `BigEndianReader` | Reads big-endian data from a stream. |
| `BigEndianWriter` | `BigEndianWriter` is a class in Aspose.PSD FOSS for Python exposing `__enter__`, `__exit__`, `__init__`, `dispose`, `get_pascal_string_storage_length_aligned_to4`, `seek`, and 20 more. |
| `Image` | Abstract base class for image objects. |
| `ImageLoader` | Provides the load functionality for images. |
| `LayerAndMaskSectionReader` | `LayerAndMaskSectionReader` is a class in Aspose.PSD FOSS for Python exposing `load`. |
| `LayerAndMaskSectionWriter` | Writes PSD/PSB Layer and Mask Information sections. |
| `Point` | `Point` is a class in Aspose.PSD FOSS for Python exposing `__eq__`, `__hash__`, `__init__`, `__ne__`, `__str__`, `empty`, and 1 more. |
| `PsdImage` | Represents a PSD image that can be loaded, inspected, and saved without rendering. |
| `PsdSectionReader` | Provides bounded reads for PSD/PSB sections that are stored in memory by this implementation. |
| `Rectangle` | Stores a set of four integers that represent the location and size of a rectangle. |
| `RectangleF` | Stores a set of four floating-point numbers that represent the location and size of a rectangle. |
| `ResourceBlock` | Represents a PSD image resource block. |
| `Size` | `Size` is a class in Aspose.PSD FOSS for Python exposing `__eq__`, `__hash__`, `__init__`, `__ne__`, `__str__`, `empty`, and 1 more. |
| `StreamContainer` | Represents a stream container used by resource save APIs. |

### Enumerations

| Enumeration | Description |
|---|---|
| `ColorModes` | Defines the color modes supported by PSD files. |
| `CompressionMethod` | Defines the compression methods used for image data in PSD files. |
| `PsdVersion` | `PsdVersion` is an enumeration in Aspose.PSD FOSS for Python defining `Psd`, `Psb`. |
| `ResourceBlockState` | Represents resource block state. |
| `SeekOrigin` | Defines seek origin for reader. |

---

## Conversion

| Class | Description |
|---|---|
| `BigEndianBitConverter` | Provides helper methods for reading big-endian primitive values from byte arrays. |

---

## Core Exceptions

| Class | Description |
|---|---|
| `ArgumentNullException` | Exception that is thrown when argument is null. |
| `NotSupportedException` | Exception that is thrown when operation is not supported. |
| `PsdLoadException` | Exception that is thrown when an error occurs while loading a PSD file. |
| `PsdSaveException` | Initializes a new instance of the PsdSaveException class. |

---

## Layers

| Class | Description |
|---|---|
| `BlendRange` | Represents a PSD layer blend range. |
| `ChannelInformation` | Represents PSD layer channel information. |
| `GlobalLayerMaskInfo` | `GlobalLayerMaskInfo` is a class in Aspose.PSD FOSS for Python exposing `empty`. |
| `Layer` | Layer metadata such as name, bounds, opacity, visibility, and blend mode can be read and modified through the PsdImage.layers collection. |
| `LayerBlendModeMapper` | `LayerBlendModeMapper` is a class in Aspose.PSD FOSS for Python exposing `get_blend_mode_key`, `parse_blend_mode_key`. |
| `LayerBlendingRangesData` | Represents PSD layer blending ranges data. |
| `LayerBlendingRangesInfo` | `LayerBlendingRangesInfo` is a class in Aspose.PSD FOSS for Python exposing `__init__`. |
| `LayerChannelInfo` | Stores one channel metadata entry from a layer record. |
| `LayerMaskData` | Defines the base class for PSD layer mask data. |
| `LayerMaskDataShort` | Defines layer mask data for layers that have only a raster or vector mask. |
| `LayerMaskInfo` | `LayerMaskInfo` is a class in Aspose.PSD FOSS for Python exposing `__init__`. |
| `LayerRawData` | `LayerRawData` is a class in Aspose.PSD FOSS for Python exposing `WithBlendModeKey`, `__init__`, `empty`, `with_blend_mode_key`. |
| `LayerRecordReader` | `LayerRecordReader` is a class in Aspose.PSD FOSS for Python exposing `load`. |
| `LayerRecordWriter` | Writes PSD/PSB layer records from the in-memory Layer model. |
| `LayerResource` | `LayerResource` is a class in Aspose.PSD FOSS for Python exposing `save`. |
| `PsdLayerChannelInfo` | Provides a read-only summary of one parsed layer channel record. |
| `RawLayerBlendingRangesSection` | `RawLayerBlendingRangesSection` is a class in Aspose.PSD FOSS for Python exposing `__init__`, `empty`, `load`. |
| `RawLayerMaskSection` | `RawLayerMaskSection` is a class in Aspose.PSD FOSS for Python exposing `__init__`, `empty`, `load`. |

### Enumerations

| Enumeration | Description |
|---|---|
| `BlendMode` | Defines the blend modes used for layers in PSD files. |
| `LayerMaskFlags` | Defines PSD layer mask flags. |

---

## Loaders

| Class | Description |
|---|---|
| `PsdImageLoader` | `PsdImageLoader` is a class in Aspose.PSD FOSS for Python exposing `load`. |

---

## Resources

| Class | Description |
|---|---|
| `ImageResourceIds` | Provides common PSD image resource identifiers used by tests and fixtures. |
| `IndexedColorPalette` | `IndexedColorPalette` is a class in Aspose.PSD FOSS for Python exposing `__init__`, `parse`, `to_public_info`. |
| `IndexedColorPaletteInfo` | Provides a read-only view over an indexed-color PSD palette. |
| `PreservedResourceBlock` | Adapts a raw‑preserved image resource to the official ResourceBlock surface. |
| `PsdResourceInfo` | Provides a read-only summary of one parsed PSD image resource block. |
| `UnknownResource` | Initializes a new instance of the UnknownResource class. |

### Enumerations

| Enumeration | Description |
|---|---|
| `PsdResourceKind` | `PsdResourceKind` is an enumeration in Aspose.PSD FOSS for Python defining `UNKNOWN`, `GLOBAL_ANGLE`, `ICC_PROFILE`, `ICC_UNTAGGED_PROFILE`. |

---

## Sections

| Class | Description |
|---|---|
| `ColorData` | Stores the PSD Color Mode Data section as raw bytes plus mode‑aware parsed structure when available. |
| `ImageData` | Stores the PSD Image Data section as a compression header plus raw payload bytes. |
| `ImageDataStructure` | Describes the validated structural layout of the PSD Image Data payload. |
| `ImageResourcesSection` | Represents the PSD Image Resources section as raw‑preserved bytes plus unknown‑only parsed summaries. |
| `LayerAndMaskSection` | Represents the PSD/PSB Layer and Mask Information section and its raw-preserved save state. |
| `PsdColorDataInfo` | Provides a read-only summary of the PSD Color Mode Data section. |
| `PsdHeader` | Contains the header information of a Photoshop document. |
| `PsdImageDataInfo` | `PsdImageDataInfo` is a class in Aspose.PSD FOSS for Python exposing `__init__`. |
| `PsdImageDocumentState` | Stores parsed PSD/PSB document sections used by PsdImage. |

### Enumerations

| Enumeration | Description |
|---|---|
| `ImageDataKind` | Identifies the structural shape of the PSD Image Data payload. |
| `PsdColorDataKind` | Describes how the Color Mode Data payload was interpreted for the loaded document. |

---

## Write Descriptors

| Class | Description |
|---|---|
| `PsdImageWriter` | Writes parsed PSD/PSB document state to a stream. |

---

## See Also

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

## Related Topics
- [ArgumentNullException](https://reference.aspose.org/psd/python/argumentnullexception): Exception that is thrown when argument is null.
- [BigEndianBitConverter](https://reference.aspose.org/psd/python/bigendianbitconverter): Provides helper methods for reading big-endian primitive values from byte arrays.
- [BigEndianReader](https://reference.aspose.org/psd/python/bigendianreader): Reads big-endian data from a stream.
- [BigEndianWriter](https://reference.aspose.org/psd/python/bigendianwriter): `BigEndianWriter` is a class in Aspose.PSD FOSS for Python exposing `__enter__`, `__exit__`, `__init__`, `dispose`, `get_pascal_string_storage_length_aligned_to4`, `seek`, and 20 more.
- [BlendMode](https://reference.aspose.org/psd/python/blendmode): Defines the blend modes used for layers in PSD files.
- [BlendRange](https://reference.aspose.org/psd/python/blendrange): Represents a PSD layer blend range.
- [ChannelInformation](https://reference.aspose.org/psd/python/channelinformation): Represents PSD layer channel information.
- [ColorData](https://reference.aspose.org/psd/python/colordata): Stores the PSD Color Mode Data section as raw bytes plus mode‑aware parsed structure when available.
- [ColorModes](https://reference.aspose.org/psd/python/colormodes): Defines the color modes supported by PSD files.
- [CompressionMethod](https://reference.aspose.org/psd/python/compressionmethod): Defines the compression methods used for image data in PSD files.
- [GlobalLayerMaskInfo](https://reference.aspose.org/psd/python/globallayermaskinfo): `GlobalLayerMaskInfo` is a class in Aspose.PSD FOSS for Python exposing `empty`.
- [Image](https://reference.aspose.org/psd/python/image): Abstract base class for image objects.
- [ImageData](https://reference.aspose.org/psd/python/imagedata): Stores the PSD Image Data section as a compression header plus raw payload bytes.
- [ImageDataKind](https://reference.aspose.org/psd/python/imagedatakind): Identifies the structural shape of the PSD Image Data payload.
- [ImageDataStructure](https://reference.aspose.org/psd/python/imagedatastructure): Describes the validated structural layout of the PSD Image Data payload.
- [ImageLoader](https://reference.aspose.org/psd/python/imageloader): Provides the load functionality for images.
- [ImageResourceIds](https://reference.aspose.org/psd/python/imageresourceids): Provides common PSD image resource identifiers used by tests and fixtures.
- [ImageResourcesSection](https://reference.aspose.org/psd/python/imageresourcessection): Represents the PSD Image Resources section as raw‑preserved bytes plus unknown‑only parsed summaries.
- [IndexedColorPalette](https://reference.aspose.org/psd/python/indexedcolorpalette): `IndexedColorPalette` is a class in Aspose.PSD FOSS for Python exposing `__init__`, `parse`, `to_public_info`.
- [IndexedColorPaletteInfo](https://reference.aspose.org/psd/python/indexedcolorpaletteinfo): Provides a read-only view over an indexed-color PSD palette.
- [Layer](https://reference.aspose.org/psd/python/layer): `Layer` class with 5 methods and 29 properties
- [LayerAndMaskSection](https://reference.aspose.org/psd/python/layerandmasksection): Represents the PSD/PSB Layer and Mask Information section and its raw-preserved save state.
- [LayerAndMaskSectionReader](https://reference.aspose.org/psd/python/layerandmasksectionreader): `LayerAndMaskSectionReader` is a class in Aspose.PSD FOSS for Python exposing `load`.
- [LayerAndMaskSectionWriter](https://reference.aspose.org/psd/python/layerandmasksectionwriter): Writes PSD/PSB Layer and Mask Information sections.
- [LayerBlendModeMapper](https://reference.aspose.org/psd/python/layerblendmodemapper): `LayerBlendModeMapper` is a class in Aspose.PSD FOSS for Python exposing `get_blend_mode_key`, `parse_blend_mode_key`.
- [LayerBlendingRangesData](https://reference.aspose.org/psd/python/layerblendingrangesdata): Represents PSD layer blending ranges data.
- [LayerBlendingRangesInfo](https://reference.aspose.org/psd/python/layerblendingrangesinfo): `LayerBlendingRangesInfo` is a class in Aspose.PSD FOSS for Python exposing `__init__`.
- [LayerChannelInfo](https://reference.aspose.org/psd/python/layerchannelinfo): Stores one channel metadata entry from a layer record.
- [LayerMaskData](https://reference.aspose.org/psd/python/layermaskdata): Defines the base class for PSD layer mask data.
- [LayerMaskDataShort](https://reference.aspose.org/psd/python/layermaskdatashort): Defines layer mask data for layers that have only a raster or vector mask.
- [LayerMaskFlags](https://reference.aspose.org/psd/python/layermaskflags): Defines PSD layer mask flags.
- [LayerMaskInfo](https://reference.aspose.org/psd/python/layermaskinfo): `LayerMaskInfo` is a class in Aspose.PSD FOSS for Python exposing `__init__`.
- [LayerRawData](https://reference.aspose.org/psd/python/layerrawdata): `LayerRawData` is a class in Aspose.PSD FOSS for Python exposing `WithBlendModeKey`, `__init__`, `empty`, `with_blend_mode_key`.
- [LayerRecordReader](https://reference.aspose.org/psd/python/layerrecordreader): `LayerRecordReader` is a class in Aspose.PSD FOSS for Python exposing `load`.
- [LayerRecordWriter](https://reference.aspose.org/psd/python/layerrecordwriter): Writes PSD/PSB layer records from the in-memory Layer model.
- [LayerResource](https://reference.aspose.org/psd/python/layerresource): `LayerResource` is a class in Aspose.PSD FOSS for Python exposing `save`.
- [NotSupportedException](https://reference.aspose.org/psd/python/notsupportedexception): Exception that is thrown when operation is not supported.
- [Point](https://reference.aspose.org/psd/python/point): `Point` is a class in Aspose.PSD FOSS for Python exposing `__eq__`, `__hash__`, `__init__`, `__ne__`, `__str__`, `empty`, and 1 more.
- [PreservedResourceBlock](https://reference.aspose.org/psd/python/preservedresourceblock): Adapts a raw‑preserved image resource to the official ResourceBlock surface.
- [PsdColorDataInfo](https://reference.aspose.org/psd/python/psdcolordatainfo): Provides a read-only summary of the PSD Color Mode Data section.
- [PsdColorDataKind](https://reference.aspose.org/psd/python/psdcolordatakind): Describes how the Color Mode Data payload was interpreted for the loaded document.
- [PsdHeader](https://reference.aspose.org/psd/python/psdheader): Contains the header information of a Photoshop document.
- [PsdImage](https://reference.aspose.org/psd/python/psdimage): Represents a PSD image that can be loaded, inspected, and saved without rendering.
- [PsdImageDataInfo](https://reference.aspose.org/psd/python/psdimagedatainfo): `PsdImageDataInfo` is a class in Aspose.PSD FOSS for Python exposing `__init__`.
- [PsdImageDocumentState](https://reference.aspose.org/psd/python/psdimagedocumentstate): Stores parsed PSD/PSB document sections used by PsdImage.
- [PsdImageLoader](https://reference.aspose.org/psd/python/psdimageloader): `PsdImageLoader` is a class in Aspose.PSD FOSS for Python exposing `load`.
- [PsdImageWriter](https://reference.aspose.org/psd/python/psdimagewriter): Writes parsed PSD/PSB document state to a stream.
- [PsdLayerChannelInfo](https://reference.aspose.org/psd/python/psdlayerchannelinfo): Provides a read-only summary of one parsed layer channel record.
- [PsdLoadException](https://reference.aspose.org/psd/python/psdloadexception): Exception that is thrown when an error occurs while loading a PSD file.
- [PsdResourceInfo](https://reference.aspose.org/psd/python/psdresourceinfo): Provides a read-only summary of one parsed PSD image resource block.
- [PsdResourceKind](https://reference.aspose.org/psd/python/psdresourcekind): `PsdResourceKind` is an enumeration in Aspose.PSD FOSS for Python defining `UNKNOWN`, `GLOBAL_ANGLE`, `ICC_PROFILE`, `ICC_UNTAGGED_PROFILE`.
- [PsdSaveException](https://reference.aspose.org/psd/python/psdsaveexception): Initializes a new instance of the PsdSaveException class.
- [PsdSectionReader](https://reference.aspose.org/psd/python/psdsectionreader): Provides bounded reads for PSD/PSB sections that are stored in memory by this implementation.
- [PsdVersion](https://reference.aspose.org/psd/python/psdversion): `PsdVersion` is an enumeration in Aspose.PSD FOSS for Python defining `Psd`, `Psb`.
- [RawLayerBlendingRangesSection](https://reference.aspose.org/psd/python/rawlayerblendingrangessection): `RawLayerBlendingRangesSection` is a class in Aspose.PSD FOSS for Python exposing `__init__`, `empty`, `load`.
- [RawLayerMaskSection](https://reference.aspose.org/psd/python/rawlayermasksection): `RawLayerMaskSection` is a class in Aspose.PSD FOSS for Python exposing `__init__`, `empty`, `load`.
- [Rectangle](https://reference.aspose.org/psd/python/rectangle): Stores a set of four integers that represent the location and size of a rectangle.
- [RectangleF](https://reference.aspose.org/psd/python/rectanglef): Stores a set of four floating-point numbers that represent the location and size of a rectangle.
- [ResourceBlock](https://reference.aspose.org/psd/python/resourceblock): Represents a PSD image resource block.
- [ResourceBlockState](https://reference.aspose.org/psd/python/resourceblockstate): Represents resource block state.
- [SeekOrigin](https://reference.aspose.org/psd/python/seekorigin): Defines seek origin for reader.
- [Size](https://reference.aspose.org/psd/python/size): `Size` is a class in Aspose.PSD FOSS for Python exposing `__eq__`, `__hash__`, `__init__`, `__ne__`, `__str__`, `empty`, and 1 more.
- [StreamContainer](https://reference.aspose.org/psd/python/streamcontainer): Represents a stream container used by resource save APIs.
- [UnknownResource](https://reference.aspose.org/psd/python/unknownresource): Initializes a new instance of the UnknownResource class.