76 lines
2.2 KiB
Markdown
76 lines
2.2 KiB
Markdown
---
|
|
title: URL to PNG
|
|
created: 2026-06-08
|
|
updated: 2026-06-08
|
|
type: app
|
|
tags: [catalogue, screenshots, app-marathon3-rattrapage-final-b]
|
|
confidence: medium
|
|
contested: false
|
|
sources: [https://selfh.st/apps/?tag=screenshots&app=url-to-png]
|
|
---
|
|
|
|
# 📸 URL to PNG
|
|
|
|
> API simple pour capturer une page web en image PNG/PNG/JPEG via Puppeteer/Playwright.
|
|
|
|
## 📋 Informations Générales
|
|
|
|
| Champ | Valeur |
|
|
| :--- | :--- |
|
|
| **Site web** | [github.com/moshest/url-to-png](https://github.com/moshest/url-to-png) |
|
|
| **GitHub** | [moshest/url-to-png](https://github.com/moshest/url-to-png) |
|
|
| **License** | MIT |
|
|
| **Langage** | TypeScript/Node |
|
|
| **Étoiles GitHub** | <1k ⭐ |
|
|
| **Catégorie** | [[cat-screenshots|Screenshots]] |
|
|
|
|
## 📝 Description
|
|
|
|
**URL to PNG** est un microservice HTTP qui prend une URL en paramètre et retourne une capture d'écran de la page (viewport, full page, retina). Idéal pour générer des vignettes d'OG images, des previews de sites, ou archiver visuellement une page. Différence vs Shot-scraper : API HTTP simple vs CLI Python. Pour qui : développeurs générant des aperçus de liens dans des newsletters/sites.
|
|
|
|
## 🚀 Installation
|
|
|
|
### Docker Compose (recommandé)
|
|
|
|
```yaml
|
|
version: '3.8'
|
|
services:
|
|
url-to-png:
|
|
image: ghcr.io/moshest/url-to-png:latest
|
|
container_name: url-to-png
|
|
restart: unless-stopped
|
|
environment:
|
|
- PORT=8080
|
|
- ENABLE_CACHE=true
|
|
volumes:
|
|
- url-to-png-cache:/app/cache
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.http.routers.urltopng.rule=Host(`shot.example.com`)
|
|
volumes:
|
|
url-to-png-cache:
|
|
```
|
|
|
|
## 🔄 Alternatives
|
|
|
|
### Open Source
|
|
- [[app-shotscape]] — Screenshots avec API
|
|
- [[app-plunk]] — Capture OG images
|
|
|
|
### Propriétaires
|
|
- **Urlbox** — SaaS de capture de sites
|
|
- **ScreenshotAPI** — API screenshot managée
|
|
|
|
## 🔐 Sécurité
|
|
- Authentification : header API key recommandé
|
|
- Isolation : chaque capture dans un sandbox Chromium
|
|
|
|
## 📚 Ressources
|
|
- [Documentation](https://github.com/moshest/url-to-png#readme)
|
|
- [GitHub](https://github.com/moshest/url-to-png)
|
|
|
|
## Pages Liées
|
|
- [[cat-screenshots]] — Catégorie Screenshots
|
|
- [[app-shlink]] — Concurrent pour previews
|
|
- [[recettes-docker-compose]] — Templates Docker
|