URL to PNG

Website

HTTP service that generates PNG screenshots from URLs using Playwright

251 stars 37 forks last commit first released MIT

Actively maintained

Last commit 26 Apr 2026.

URL to PNG screenshot

URL to PNG is a self-hosted HTTP service that captures web pages and returns PNG images. It exposes a simple query-parameter API and uses Playwright for parallel, configurable headless rendering.

Key Features

  • HTTP endpoint that accepts query parameters (url, width, height, viewport size, isMobile, isFullPage, isDarkMode, deviceScaleFactor, forceReload) to customize screenshots
  • Playwright-based parallel rendering with configurable Playwright options for Chromium browsers
  • Support for full-page captures, mobile user agent emulation, dark-mode preference, and device scale factor (DPR)
  • Caching of generated images with option to force reload and configurable TTL
  • Storage integration options: local filesystem plus adapters for Amazon S3 and CouchDB
  • Allow-list support to restrict which domains may be captured
  • Optional encrypted request payloads using a server CRYPTO_KEY for added request privacy
  • Prometheus-compatible metrics endpoint for monitoring rendering activity and performance
  • Distributed-friendly build: Docker image available and local development via pnpm and Playwright browser installation

Use Cases

  • Embed dynamic website screenshots in HTML or newsletters by targeting the service endpoint
  • Generate social preview or thumbnail images for URLs programmatically
  • Automated visual checks, status dashboards, or scheduled snapshots for monitoring website appearance

Limitations and Considerations

  • Rendering uses headless browsers and can be CPU/memory intensive under high concurrency; capacity planning is required
  • Some sites may block headless browsers or use anti-bot measures that prevent accurate captures
  • Requires Playwright browser binaries to be installed for local runs and proper configuration of storage backends (S3/CouchDB) when used

URL to PNG is focused on simple, configurable screenshot generation for self-hosted environments. It is suitable for embedding into workflows, CI, or internal tooling where control over rendering and storage is required.

Categories:

Tags:

Tech Stack:

Share:

Similar to URL to PNG

bknd logo

bknd

Lightweight backend platform with data, auth, media, and workflows

3.7k
144
Last commit

bknd is a lightweight Firebase/Supabase alternative that provides a modular backend with REST API, admin UI, auth, media, and workflows, deployable across many JS runtimes.

Apache-2.0Actively maintained
Alternative to:
Firebase logo
Firebase
+9

docker-staticmaps

Lightweight REST API for generating static map images

128
8
Last commit

Open-source REST API to render static map images with markers, polygons, polylines and text; supports multiple basemaps, caching, rate limiting and Docker deployment.

Actively maintained
MinIO logo

MinIO

High-performance S3-compatible object storage server

61.4k
7.7k
Last commit

MinIO is a high-performance, S3-compatible object storage server for building private cloud storage, data lakes, and scalable storage backends for applications.

AGPL-3.0Actively maintained
Alternative to:
Amazon S3 logo
Amazon S3
+7
Gotenberg logo

Gotenberg

Containerized API for document conversion and PDF generation

12.7k
821
Last commit

Gotenberg is a containerized HTTP API that converts HTML, Markdown, and Office documents to PDF using engines like Chromium and LibreOffice, with options to merge and automate outputs.

MITActively maintained
Alternative to:
PDFShift logo
PDFShift
+9
Thumbor logo

Thumbor

On-demand image resizing, cropping, filters, and smart focal-point detection

10.5k
865
Last commit

Thumbor is an open-source image processing server for on-demand resizing, smart cropping, format conversion, and filter pipelines via URL-based HTTP requests.

MITActively maintained
Alternative to:
CloudConvert logo
CloudConvert
+4
Zot logo

Zot

OCI-native container and artifact registry (OCI Distribution compliant)

2.5k
241
Last commit

Open-source, production-ready OCI-native container image and artifact registry with single-binary deployment, S3/local storage, web UI and CLI.

Apache-2.0Actively maintained
Alternative to:
Docker Hub logo
Docker Hub
+3