Hi,
how can I get the dimension of an image, that I’m loading from my assets folder?
I tried the following
$filePath = $kirby->root('assets') . '/image.jpg';
$asset = new Asset($filePath);
$img = new Image($asset);
$thumb = $asset->thumb();
but when I call ->dimensions()
on an any of the objects, the result of width and height is always 0.
I obvioulsy am missing a step here.