Skip to content

Kirby 5.2.2

$image->write()

Writes content to the file

$image->write(string $content): bool

Parameters

Name Type Default
$contentrequired string no default value

Return type

bool

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

Parent class

Kirby\Image\Image inherited from Kirby\Filesystem\File