---
Product: psd
Platform: python
Page Type: docs
Canonical URL: https://docs.aspose.org/psd/python/getting-started/quickstart
---

# Quickstart

A first working example: load a PSD/PSB document, inspect its header and layers, make a supported metadata edit, and save the result.

## Overview

This example loads a PSD/PSB document, prints its header and layer metadata, renames the first layer, and saves the result.

---

### Prerequisites

| Requirement | Detail |
|---|---|
| Python | A supported CPython interpreter |
| Package | Aspose.PSD FOSS for Python installed — see [Installation](../installation/) |

---

1. Load the document and print its header.

```python
from aspose_psd_foss.psdimage import PsdImage

with PsdImage.load("input.psd") as image:
    print(f"Width: {image.width}, Height: {image.height}")
    print(f"ColorMode: {image.color_mode}, Version: {image.version}")
```

2. Print each layer's metadata.

```python
from aspose_psd_foss.psdimage import PsdImage

with PsdImage.load("input.psd") as image:
    for layer in image.layers:
        print(f"{layer.name}: {layer.bounds}, Visible={layer.is_visible}")
```

3. Rename the first layer and save the result.

```python
from aspose_psd_foss.psdimage import PsdImage

with PsdImage.load("input.psd") as image:
    if image.layer_count > 0:
        image.layers[0].name = f"{image.layers[0].name} (edited)"
    image.save("output.psd")
```

---

### Next Steps

- [Core API](../../developer-guide/core-api/) for the full `PsdImage`/`Image` reference
- [Layers](../../developer-guide/layers/) for the full layer metadata reference
- [Core Exceptions](../../developer-guide/psd-core-exceptions/) for load/save error handling

## See Also

- [Aspose.PSD — Enterprise Documentation](https://docs.aspose.com/psd/)