# Rjv Hidpi Fullpage

Take a full-page, full-width, genuinely high-DPI (2x) screenshot of a web page or signed-in web app using agent-browser and capture.sh, including apps with scrollable content inside fixed panels.

**Canonical URL:** https://skillshunter.net/skills/discovered-dd79b195a9838714a5a74a5696d428c7f1a4878a5f9ecaa8

**JSON URL:** https://skillshunter.net/api/public/v1/skills/discovered-dd79b195a9838714a5a74a5696d428c7f1a4878a5f9ecaa8

**Markdown URL:** https://skillshunter.net/skills/discovered-dd79b195a9838714a5a74a5696d428c7f1a4878a5f9ecaa8.md

**Instructions download URL:** https://skillshunter.net/skills/discovered-dd79b195a9838714a5a74a5696d428c7f1a4878a5f9ecaa8/download

**Category:** Software & Development

**Source URL:** https://github.com/rjvim/ai-skills/blob/9a942086adef21dbd0c061d9d9e8fd5f43328bf6/skills/rjv-hidpi-fullpage/SKILL.md

**Source commit:** 9a942086adef21dbd0c061d9d9e8fd5f43328bf6

**Listing approved at:** 2026-12-03

**Created at:** 2026-12-02T09:09:48.000000Z

**Updated at:** 2026-12-03T16:19:55.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Before running the capture script, ensure the viewport is set to the desired width at 2x scale using `agent-browser --session S set viewport 1920 1080 2`. Also, verify that the page is fully loaded, signed in, and popups are closed.

### When to use it

- Capture marketing site layouts with exact preservation
- Take high-DPI screenshots of web apps with scrollable panels
- Generate full-page screenshots for documentation or testing
- Capture read-only pages for cataloging with rjv-page-crawl

## Skill instructions

---
name: rjv-hidpi-fullpage
description: "Mechanism: take a full-page, full-width, genuinely high-DPI (2x) screenshot of a web page or signed-in web app with agent-browser and capture.sh, including apps whose content scrolls inside a fixed panel. Crawling an app's read-only pages into a catalogue lives in rjv-page-crawl. Triggers: high resolution screenshot, full page screenshot, retina screenshot, 2x screenshot, hi-dpi capture."
---

# High-DPI full-page capture

Goal: one PNG per page where the page fills the full image width, every
pixel is real 2x rendering, and nothing is cut off or padded with blank
space.

## Find your symptom

| Symptom | Go to |
|---|---|
| Image is not twice the layout width | The one rule |
| Page rendered small inside a large blank canvas | The one rule (launch flag) |
| Only the first screen of the body shows, or a blank band sits above the footer | Why inner panels are unclipped |
| A marketing site's layout changed in the shot | `UNCLIP=0` |
| `capture.sh` exited 3 | Very tall pages |
| Asked to screenshot every page or report | `rjv-page-crawl` |

## The one rule that makes it high-DPI

Set density through viewport emulation, as the third number:

```sh
agent-browser --session S set viewport 1920 1080 2
```

This gives a 3840 px wide image of a 1920 px wide layout.

**Never use the Chrome launch flag `--force-device-scale-factor=2`.** It
renders the page small inside a large blank canvas. Get more resolution
only from the viewport scale: upscaling an image or changing its DPI
metadata adds no detail.

## Capture a page

Open the page in a session, sign in, click the tab you want, close
popups. Then run the `capture.sh` bundled in this skill's folder
(`~/.agents/skills/rjv-hidpi-fullpage/` when installed with `npx skills`):

```sh
capture.sh SESSION out.png [1920] [2]
```

The script:
1. sets the viewport to the width at 2x,
2. waits for network idle and fonts,
3. scrolls the window and every inner scroll panel so lazy content loads,
4. lets inner scroll panels grow to their content (`UNCLIP=0` to skip),
5. returns to the top, takes the full-page screenshot,
6. fails if the width is not width × scale, and warns if the image is
   shorter than the page.

Exit codes: `0` ok, `1` density or screenshot failed, `3` image cut off
(very tall pages—keep the image and note the cut-off height).

## Why inner panels are unclipped

Many back-office apps put the page body in a panel fixed to a share of
the window height (for example 75vh) that scrolls on its own. A full-page
shot then shows only the first screen of that panel. Making the window
taller does not fix it: the panel grows with the window and leaves a
blank band above the footer. Setting the panel and its clipping ancestors
to `height: auto` in the live browser shows the whole content once, top
to bottom. It changes nothing on the server.

For a marketing site whose layout must be preserved exactly, use `UNCLIP=0`.

## Always look at the result

A correct width does not prove a good shot. Open two views of the image:
a resized copy of the whole page, and a crop at full size. Done when all
three hold:

- the resized copy shows the header at the top, the footer at the bottom,
  and no blank band between,
- no popup or loading overlay covers content,
- text in the full-size crop is crisp.

## Evidence

A back-office dashboard, September 2026: the body lived in a 75vh scroll
panel. Stretching the viewport left a 25vh blank band; unclipping
produced 3840 × 6926 with the footer directly under the last card, and a
full-size crop showed crisp text.

