Skip to content
Nat Lee

Keyboard shortcuts

Turn these off if they get in the way of a screen reader or voice control. The setting is saved in this browser.

1
Home
2
Projects
3
About
4
Experience
/
Search projects
?
Show this panel

Web Automation

playwright-snap

Website snapshots, with a maintained browser

Render a page with Playwright and return a PNG or PDF as base64. Moving from pyppeteer-snap takes a one-line import change.

Role
Creator & Maintainer
Period
2026 – 2026.11
Status
Completed
Theme
Libraries & tools
playwright-snap, screenshot 1

Overview

The maintained successor to pyppeteer-snap uses Playwright-driven Chromium to render JavaScript-heavy pages. It keeps the same function names, arguments and return types, with a Python API and command-line interface for PNG and PDF snapshots.

Features

  • PNG and PDF snapshots returned as base64
  • Playwright-driven headless Chromium
  • Python functions and a command-line interface
  • Matching pyppeteer-snap arguments and return types
  • Libraries & tools7070 stars on GitHub

    Blur-Generator

    Makes perfectly good images worse on purpose: motion, lens, Gaussian and depth-aware blur, for training models that have to cope with bad photos.

    2019Completed
  • Libraries & tools2626 stars on GitHub

    HEIC2PNG

    Turns iPhone HEIC photos into PNG from the CLI, a shell pipe or Python. A small tool for a small, recurring annoyance.

    2019Completed
  • Libraries & tools7676 stars on GitHub

    batch-crop-images

    Draw a crop box once and it is applied to a whole folder of similar images. Written because I refused to crop them one by one, and apparently other people refused too.

    2019Completed