Aspose.PSD FOSS for Python

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

Core API

ClassDescription
BigEndianReaderReads big-endian data from a stream.
BigEndianWriterBigEndianWriter.position property returns the current write offset in the underlying stream.
ImageAbstract base class for image objects.
ImageLoaderProvides the load functionality for images.
LayerAndMaskSectionReaderClass with 1 method.
LayerAndMaskSectionWriterWrites PSD/PSB Layer and Mask Information sections.
PointThe Point class provides empty() to obtain a zero point and equals(other) to compare coordinates; its properties include x, y, is_empty, and the static Empty.
PsdImageRepresents a PSD image that can be loaded, inspected, and saved without rendering.
PsdSectionReaderProvides bounded reads for PSD/PSB sections that are stored in memory by this implementation.
RectangleStores a set of four integers that represent the location and size of a rectangle.
RectangleFStores a set of four floating-point numbers that represent the location and size of a rectangle.
ResourceBlockRepresents a PSD image resource block.
SizeClass with 3 methods and 5 properties.
StreamContainerRepresents a stream container used by resource save APIs.

Enumerations

EnumerationDescription
ColorModesDefines the color modes supported by PSD files.
CompressionMethodDefines the compression methods used for image data in PSD files.
PsdVersionEnum with 2 members.
ResourceBlockStateRepresents resource block state.
SeekOriginDefines seek origin for reader.

Conversion

ClassDescription
BigEndianBitConverterProvides helper methods for reading big-endian primitive values from byte arrays.

Coreexceptions

ClassDescription
ArgumentNullExceptionException that is thrown when argument is null.
NotSupportedExceptionException that is thrown when operation is not supported.
PsdLoadExceptionException that is thrown when an error occurs while loading a PSD file.
PsdSaveExceptionInitializes a new instance of the PsdSaveException class.

Layers

ClassDescription
BlendRangeRepresents a PSD layer blend range.
ChannelInformationRepresents PSD layer channel information.
GlobalLayerMaskInfoClass with 1 method.
LayerLayer channel IDs and data lengths are available via the PsdLayerChannelInfo properties channel_id and data_length.
LayerBlendModeMapperClass with 2 methods and 1 member.
LayerBlendingRangesDataRepresents PSD layer blending ranges data.
LayerBlendingRangesInfoClass with 1 method and 2 properties.
LayerChannelInfoStores one channel metadata entry from a layer record.
LayerMaskDataDefines the base class for PSD layer mask data.
LayerMaskDataShortDefines layer mask data for layers that have only a raster or vector mask.
LayerMaskInfoClass with 1 method and 2 properties.
LayerRawDataClass with 4 methods and 7 properties.
LayerRecordReaderClass with 1 method and 3 members.
LayerRecordWriterWrites PSD/PSB layer records from the in-memory Layer model.
LayerResourceClass with 1 method and 4 properties and 2 members.
PsdLayerChannelInfoProvides a read-only summary of one parsed layer channel record.
RawLayerBlendingRangesSectionClass with 3 methods and 1 property.
RawLayerMaskSectionClass with 3 methods and 1 property.

Enumerations

EnumerationDescription
BlendModeDefines the blend modes used for layers in PSD files.
LayerMaskFlagsDefines PSD layer mask flags.

Loaders

ClassDescription
PsdImageLoaderClass with 1 method.

Resources

ClassDescription
ImageResourceIdsProvides common PSD image resource identifiers used by tests and fixtures.
IndexedColorPaletteClass with 3 methods and 1 property and 1 member.
IndexedColorPaletteInfoProvides a read-only view over an indexed-color PSD palette.
PreservedResourceBlockAdapts a raw‑preserved image resource to the official ResourceBlock surface.
PsdResourceInfoProvides a read-only summary of one parsed PSD image resource block.
UnknownResourceInitializes a new instance of the UnknownResource class.

Enumerations

EnumerationDescription
PsdResourceKindEnum with 4 members.

Sections

ClassDescription
ColorDataStores the PSD Color Mode Data section as raw bytes plus mode‑aware parsed structure when available.
ImageDataStores the PSD Image Data section as a compression header plus raw payload bytes.
ImageDataStructureDescribes the validated structural layout of the PSD Image Data payload.
ImageResourcesSectionRepresents the PSD Image Resources section as raw‑preserved bytes plus unknown‑only parsed summaries.
LayerAndMaskSectionRepresents the PSD/PSB Layer and Mask Information section and its raw-preserved save state.
PsdColorDataInfoProvides a read-only summary of the PSD Color Mode Data section.
PsdHeaderContains the header information of a Photoshop document.
PsdImageDataInfoClass with 1 method and 5 properties.
PsdImageDocumentStateStores parsed PSD/PSB document sections used by PsdImage.

Enumerations

EnumerationDescription
ImageDataKindIdentifies the structural shape of the PSD Image Data payload.
PsdColorDataKindDescribes how the Color Mode Data payload was interpreted for the loaded document.

Writedescriptors

ClassDescription
PsdImageWriterWrites parsed PSD/PSB document state to a stream.

See Also