URL to PNG
Given a url for a webpage, convert it to png suitable for mobile view.
See examples
Requirements
uv
Installation
bash ${baseDir}/install.sh
The script will:
- install
shot-scraperas uv tool - install
chromiumbrowser module for shot-scraper/playwright
Usage
# save to ~/Pictures with proper name by default
bash url2png.sh <url>
# specify output png path
bash url2png.sh <url> path/to/png
Agent Instructions
- Execute the
url2png.shscript. - Locate the generated PNG file (default in
~/Picturesif not specified). - Send the file to the user. Crucial: To avoid compression or dimension limits (especially on Telegram), send the image as a document/file (or ZIP it), do not send as a photo.