Skip to content

Kirby 4.1.2

$image->move()

Move the file to a new location

$image->move(string $newRoot, bool $overwrite = false): Kirby\Image\Image

Parameters

Name Type Default Description
$newRoot * string
$overwrite bool false Force overwriting any existing files

Return type

Kirby\Image\Image

This method does not modify the existing $image object but returns a new object with the changes applied. Learn more →

Parent class

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