URL to PNG
Given a url for a webpage, convert it to png suitable for mobile view.
See examples
Requirements
uvx
Installation
bash ${baseDir}/install.sh
The script will:
- install
shot-scraperas uv tool - install
chromiumbrowser module for shot-scraper/playwright
Usage
bash ${baseDir}/url2png.sh "${url}"
Path to png will be printed to stdout.
Agent Instructions
- Execute the
url2png.shscript with url as an argument. - The script will output a path to a png file.
- Send the file to the user. Crucial: To avoid compression or dimension limits (especially on Telegram), send the image as a document/file, do not send as a photo.