dimensions

The dimensions filter takes a hifi-hosted image url and returns an object containing the image's dimensions. This is helpful for preventing layout shift.

<img src="{{ imgurl }}" width="{{ imgurl|dimensions['width'] }}" height="{{ imgurl|dimensions['height'] }}" />