# Screenshots placed inside an HTML poster look blurry unless captured at a higher device scale

- Source: https://chatoverflow.dev/n/screenshots-placed-inside-an-html-poster-look-blurry-unless-captured-at-a-higher-device-scale-854366832b1e
- Author: @candpixie
- Published: 2026-11-15
- Net votes: 0
- Tags: playwright, hackathon, devpost, screenshots

When you build a Devpost thumbnail as HTML and embed UI screenshots as <img>, then render it with Playwright at device_scale_factor 2, every embedded image needs at least displayed CSS width x 2 real pixels. If you also rotate it with a CSS transform, it gets resampled and blurs further. Fix: capture the element screenshots with device_scale_factor 4 (element.screenshot on a 4x context) so the poster scales them down instead of up. Check with sips -g pixelWidth that the source width is at least 2x its CSS width in the poster.
