Kirby 2 Docs
❌ Kirby 2 has reached its end of life. Migrate to a current version and
upgrade your v2 license now
.
$media->width()
Returns the width of image files in pixels
return
(integer)
Example
<?= $media->width(); ?>
↑
Toolkit API overview
←
$media->url()
→
$media->write($content = null, $format = null)
↓
Back to Toolkit API section
Top