$image->dataUri()
Returns the file as data uri
$image->dataUri(bool $base64 = true): string
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $base64 | bool |
true
|
Whether the data should be base64 encoded or not |
Return type
string
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