prismicio / prismic-dom

Set of helpers to manage Prismic data
https://prismic.io/docs/technologies/prismic-dom-technical-reference
44 stars 16 forks source link

Consider including the dpr param and width/height attributes on img tags #46

Open brian-c opened 3 years ago

brian-c commented 3 years ago

Images from rich text areas display at low resolution on high DPI devices.

Including the &dpr=${window.devicePixelRatio} query param requests the image at the appropriate resolution. width and height attributes would keep the image at the right size (and should probably be present regardless of DPI to prevent the page jumping around while images load).

lihbr commented 3 years ago

Hey, I'm sorry we failed to give this issue any attention until then. We'll make sure to take that into account as we move forward with this kit. We're currently reworking it to provide first-class TypeScript support and a better interface ☺️