Kevin Powell - CommunityKP-C
Kevin Powell - Communityโ€ข2y agoโ€ข
117 replies
Nick

Intrinsic image sizes

Just looking to optimize my images (actually using Astro, but I'm leaning towards the raw picture tag because it seems like it has more flexibility)

The width and height attributes are intrinsic values right? ie not how big I'd like to render the image, but how big the image is on my HDD. I swear I see the former definition used everywhere? I'd then use the sizes attribute (in a picture tag) or css to set the render sizes with relevant breakpoints?

Thanks,

Nick
Was this page helpful?