# URL-to-PNG

URL-to-PNG is a self-hosted HTTP service that renders any web page to a PNG screenshot via a simple query-parameter API. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/8231/url-to-png

## Description

URL-to-PNG is a self-hosted HTTP service that renders any web page to a PNG screenshot via a simple query-parameter API. Built on Playwright with Chromium, it supports parallel rendering, customizable image and viewport dimensions, mobile user-agent and dark-mode rendering, domain allow lists, Prometheus metrics, and caching of generated images to local filesystem, Amazon S3, or CouchDB. It suits homelab users and developers who need on-demand website screenshots without third-party screenshot services or data leaving their infrastructure.

## Platform availability

Available on 1 of 10 platforms: Any server.

## Health score

55/100 (Fair), based on 4 of 5 factors.
- Maintained: 51 (last commit 220 days ago)
- Popular: 48 (258 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)
- Security check: 100 (no serious findings, CI, tests)

## Links

- Documentation: https://jasonraimondi.github.io/url-to-png/getting_started/
- Docker Hub: https://hub.docker.com/r/jasonraimondi/url-to-png
- Official website: https://jasonraimondi.github.io/url-to-png/
- GitHub: https://github.com/jasonraimondi/url-to-png

## Common questions

### Which port does URL-to-PNG listen on and how do I run it in Docker?

The Docker image listens on port 3089; you can run it with docker run --rm -p 3089:3089 ghcr.io/jasonraimondi/url-to-png. The image is also published on Docker Hub.

### Where can generated screenshots be cached or stored?

Generated images can be cached to the local filesystem, Amazon S3, or CouchDB. S3 and CouchDB storage setup is covered in the official getting started docs.

### Can I restrict which sites the service will screenshot?

Yes, URL-to-PNG supports a domain allow list so only requests to approved domains are rendered.

### How is the service configured?

Configuration is done through environment variables and query parameters; the full set of options is documented on the config page of the official docs.

---
Source: Our Local Host (https://ourlocalhost.com/app/8231/url-to-png), the self-hosted and open-source app directory.
