Open sanjay-20896 opened 1 year ago
We're going to need some more information here. Where are you not getting the metadata you expect? The metadata is stored on the uploaded image asset document, while your image field holds a reference to that asset. More information here: https://www.sanity.io/docs/presenting-images#LAJMv3QY
This means that when querying for this information, you'll want to follow the asset
field reference:
*[some groq filter here] {
title,
image {
..., // Include all the default image fields
asset->, // Expand/follow the "asset" reference to include all metadata
}
}
There's a way to obtain custom image metadata, like image title, attributions, etc? I retrieved only camera settings from a jpg with a lot of useful infos registered in with the presented query.
We are not able to get sanity metadata information for a image field . We are using sanity studio version 2
Could you let us know what is wrong in this regard