Skip to main content

Introduction

Image columns display images based on the file path in the column’s state:
The state can contain a relative path (relative to the storage disk) or an absolute URL.

Managing the disk

By default, images are stored on the disk defined in your Filament configuration. You can customize the disk:
string | Closure
The storage disk name.

Visibility

By default, Filament generates temporary URLs for images. For public images:
string | Closure
The visibility setting (‘public’ or ‘private’).

Customizing the size

You can set image dimensions:
int | string | Closure
The image width in pixels or a CSS value.
int | string | Closure
The image height in pixels or a CSS value.

Square images

Display images with a 1:1 aspect ratio:
bool | Closure
default:"true"
Whether to display as square.

Circular images

Make images fully rounded (useful for avatars):
bool | Closure
default:"true"
Whether to display as circular.

Default image

Display a placeholder when no image exists:
string | Closure
The URL of the default image.

Stacking images

Display multiple images as overlapping stack:
bool | Closure
default:"true"
Whether to stack multiple images.

Customizing the ring

The ring width around stacked images:
int | Closure
default:"3"
The ring width (0-8).

Customizing the overlap

The overlap between stacked images:
int | Closure
default:"4"
The overlap amount (0-8).

Limiting images

Limit the maximum number of images displayed:
int | Closure
default:"3"
The maximum number of images to display.

Showing remaining count

Display the count of remaining images:
bool | Closure
default:"true"
Whether to display the remaining count.
TextSize | string | Closure
default:"TextSize::Small"
The size of the remaining text.

File existence checks

By default, Filament checks if images exist. Disable for remote storage:
bool | Closure
default:"true"
Whether to check if files exist.

Wrapping images

Allow images to wrap to multiple lines:

Extra image attributes

Add HTML attributes to the <img> element:
array | Closure
An array of HTML attributes.
bool
default:"false"
Whether to merge with existing attributes.