How to query image dimensions from Sanity?
I haven't used Sanity before, so it took me a while to figure out, how to get photos dimensions using GROQ queries. Here's how I've done it: GROQ query export const query = groq` *[_type == "photo"] { image{ "dimensions": asset->metadata...
Nov 25, 20221 min read389