We are bootstrapping a startup and don't own any retina devices to capture high resolution screenshots. Thankfully, this is possible via Xvfb.
Convenience Node.js script here: https://gist.github.com/twolfson/4f7e7ec7d6969173d6a095f86e2d47c8
Here's how to get started manually:
- Launch an Xvfb instance with retina-scale DPI
Xvfb :99 -screen 0 3840x2160x24 -dpi 240
- We'll be using
:99
as our$DISPLAY
but any unused value will do - Note that we are using 2x our expected resolution for dimensions (1920x1080 * 2 -> 3840x2160)