Skip to content

Kirby 4.2.0


Copy a file to a new location.

$image->copy(string $target, bool $force = false): Kirby\Image\Image


Name Type Default
$target * string
$force bool false

Return type


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