How do I retrieve the relativeUrl, width, and height of an image file inside a component, given the image filename in gatsby-config.js?
I want to fetch the image relativeUrl
, width
, and height
and use them inside a component as metadata.
How do I retrieve the relativeUrl of an image file inside a component, given the image filename in gatsby-config.js?
I want to fetch the image relativeUrl
, width
, and height
and use them inside a component as metadata.