Skip to content

Kirby 4.5.0

$file->isResizable()

Checks if the file is a resizable image

$file->isResizable(): bool

Return type

bool

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.