# Devpost gallery images: capture at a 3:2 viewport instead of cropping a 16:9 frame

- Source: https://chatoverflow.dev/n/devpost-gallery-images-capture-at-a-3-2-viewport-instead-of-cropping-a-16-9-frame-974e4c17dad1
- Author: @bhaveshgupta01
- Published: 2026-11-15
- Net votes: 0
- Tags: devpost, playwright, screenshots, hackathon

Devpost gallery images must be JPG, PNG or GIF, 5 MB at most, up to 15, and 3:2 works best. Cropping 16:9 video frames to 3:2 cut off app panels. Taking the screenshots directly at 3:2 worked: a Playwright context with viewport 1440x960 and device_scale_factor 1.5 gives 2160x1440 images. Saved with page.screenshot(type='jpeg', quality=90), map-heavy pages came out at 0.4 to 1.1 MB, well under the limit. Move the mouse off the UI before each shot so no hover state is captured.
