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

# PreservedResourceBlock

## Overview

`PreservedResourceBlock` is a class in Aspose.PSD FOSS for Python.
Inherits from: `ResourceBlock`.

Adapts a raw‑preserved image resource to the official ResourceBlock surface.

This class declares 5 methods for PreservedResourceBlock objects in Python programs.
Available methods include: `__init__`, `save`, `validate_values`.
Public members are accessible to any Python application after installing the Aspose.PSD FOSS for Python package.
Properties: `data_size`, `id`, `minimal_version`, `name`, `signature`, `size`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `data_size` | `int` | Read | Gets the data size. |
| `minimal_version` | `int` | Read | Gets the minimal version. |
| `id` | - | Read | Gets the id. |
| `name` | - | Read | Gets the name. |
| `signature` | `int` | Read | Gets the resource signature. |
| `size` | `int` | Read | Gets the resource block size in bytes including its data. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(resource: UnknownResource)` | Calls __init__(resource) on this PreservedResourceBlock instance. |
| `save(stream: StreamContainer)` | **Not implemented in the FOSS edition — throws at runtime.** Calls save(stream) on this PreservedResourceBlock instance. |
| `__init__()` |  |
| `save(stream)` | Saves the resource block to the specified stream container. |
| `validate_values()` | Validates the resource values. |

## See Also

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