Open simonrjones opened 4 years ago
As a developer I want to be able to access image width and height dimensions and alt text, if set.
Currently image field works as so:
{{ image.byName('medium') }}
Outputs image URL.
Ideally we need to access other data, e.g.
{{ image.byName('medium').url }} {{ image.byName('medium').width }} {{ image.byName('medium').height }} {{ image.byName('medium').alt }}
We could default to return URL via the default function:
As a developer I want to be able to access image width and height dimensions and alt text, if set.
Currently image field works as so:
{{ image.byName('medium') }}
Outputs image URL.
Ideally we need to access other data, e.g.
{{ image.byName('medium').url }} {{ image.byName('medium').width }} {{ image.byName('medium').height }} {{ image.byName('medium').alt }}
We could default to return URL via the default function:
{{ image.byName('medium') }}