src/utils/studio-helpers.tsimport studioData from '@/../_data/_studio.json'type ImageSize = 'small' | 'medium' | 'large' | 'full'type ImageResult = {url: stringwidth: numberheight: number}// Matches studio's Dimensions typeinterface Dimensions {w: numberh: number}// Matches studio's MetaEntry type (subset used by helpers)type MetaEntry = {o?: Dimensions // original dimensions {w, h}sm?: Dimensions // small thumbnail (300px width)
Showing the first 20 lines.
Get full code