Skip to content

Kirby 5.0.4

$file->isResizable()

Checks if the file is a resizable image

$file->isResizable(): bool

Return type

bool

This method modifies the existing $file object it is applied to and returns it again.

Parent class

Kirby\Filesystem\File

Resizable image types

By default, the following image formats can be resized by Kirby:

  • avif
  • jpg
  • jpeg
  • gif
  • png
  • webp

The resizable image types are defined in the Kirby\Image\Image class in the public static ::$resizableTypes property.