# image()

Return an image from any page specified by the path

****

- Source: <https://github.com/getkirby/kirby/tree/5.5.3/config/helpers.php#L241>

****

```php
image(string|null $path = null): Kirby\Cms\File|null
```

## Parameters

| Name | Type | Default | Description |
| ---- | ---- | ---- | ---- |
| `$path` | `string` or `null` | `null` | – |

## Return types

`Kirby\Cms\File` or `null`

## Examples

### Fetching an image of the current page

```php
<?= image('forrest.jpg')->url() ?>
```

### Fetching an image from any other page

```php
<?= image('projects/project-a/forrest.jpg')->url() ?>
```