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 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.
ImageAbstract base class for image objects.
ImageLoaderProvides the load functionality for images.
LayerAndMaskSectionReaderLayerAndMaskSectionReader is a class in Aspose.PSD FOSS for Python exposing load.
LayerAndMaskSectionWriterWrites PSD/PSB Layer and Mask Information sections.
PointPoint is a class in Aspose.PSD FOSS for Python exposing __eq__, __hash__, __init__, __ne__, __str__, empty, and 1 more.
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.
SizeSize is a class in Aspose.PSD FOSS for Python exposing __eq__, __hash__, __init__, __ne__, __str__, empty, and 1 more.
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.
PsdVersionPsdVersion is an enumeration in Aspose.PSD FOSS for Python defining Psd, Psb.
ResourceBlockStateRepresents resource block state.
SeekOriginDefines seek origin for reader.

Conversion

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

Core Exceptions

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.
GlobalLayerMaskInfoGlobalLayerMaskInfo is a class in Aspose.PSD FOSS for Python exposing empty.
LayerLayer metadata such as name, bounds, opacity, visibility, and blend mode can be read and modified through the PsdImage.layers collection.
LayerBlendModeMapperLayerBlendModeMapper is a class in Aspose.PSD FOSS for Python exposing get_blend_mode_key, parse_blend_mode_key.
LayerBlendingRangesDataRepresents PSD layer blending ranges data.
LayerBlendingRangesInfoLayerBlendingRangesInfo is a class in Aspose.PSD FOSS for Python exposing __init__.
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.
LayerMaskInfoLayerMaskInfo is a class in Aspose.PSD FOSS for Python exposing __init__.
LayerRawDataLayerRawData is a class in Aspose.PSD FOSS for Python exposing WithBlendModeKey, __init__, empty, with_blend_mode_key.
LayerRecordReaderLayerRecordReader is a class in Aspose.PSD FOSS for Python exposing load.
LayerRecordWriterWrites PSD/PSB layer records from the in-memory Layer model.
LayerResourceLayerResource is a class in Aspose.PSD FOSS for Python exposing save.
PsdLayerChannelInfoProvides a read-only summary of one parsed layer channel record.
RawLayerBlendingRangesSectionRawLayerBlendingRangesSection is a class in Aspose.PSD FOSS for Python exposing __init__, empty, load.
RawLayerMaskSectionRawLayerMaskSection is a class in Aspose.PSD FOSS for Python exposing __init__, empty, load.

Enumerations

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

Loaders

ClassDescription
PsdImageLoaderPsdImageLoader is a class in Aspose.PSD FOSS for Python exposing load.

Resources

ClassDescription
ImageResourceIdsProvides common PSD image resource identifiers used by tests and fixtures.
IndexedColorPaletteIndexedColorPalette is a class in Aspose.PSD FOSS for Python exposing __init__, parse, to_public_info.
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
PsdResourceKindPsdResourceKind is an enumeration in Aspose.PSD FOSS for Python defining UNKNOWN, GLOBAL_ANGLE, ICC_PROFILE, ICC_UNTAGGED_PROFILE.

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.
PsdImageDataInfoPsdImageDataInfo is a class in Aspose.PSD FOSS for Python exposing __init__.
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.

Write Descriptors

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

See Also

 English