On Mon, 19 May 2025 00:04:33 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:
> It seems the new screenshots could be improved by capturing them on a HiDPI > (Retina) display, as the current images appear blurry. And to eliminate > background elements in the corners, it might be better to capture screenshots > of undecorated windows as was done in the old images. To make the screenshots look good on High DPI displays, we need several images (preferably at 100%, 150% and 200% as the most common scales) and use the [**`srcset` attribute**](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/img#srcset) of the `<img>` element to provide different resolutions. If you just create a screenshot on (Retina at 200% scale), the screenshots will be *too large* and still blurry as browsers will still scale up the screenshots to the scale of the display because the [`src` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/img#src) is treated as 100%-scale candidate only. --- If we agree to go this way, I can create screenshots on Windows 10 (which still uses square window borders) in different resolutions. ------------- PR Comment: https://git.openjdk.org/jdk/pull/25278#issuecomment-2890944411