❌ Kirby 2 no longer actively supported. Migrate to a current version and
upgrade your v2 license now
.
$media->dataUri()
Returns a full base64 encoded data uri with a proper mime type
return
(string)
Example
<?= $media->dataUri() ?>
↑
Toolkit API overview
←
$media->crop($width, $height = null, $quality = null)
→
$media->delete()
↓
Back to Toolkit API section
Top