Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

rmarchet/python-pyppeteer-html2image

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
5 Commits
 
 
 
 
 
 

Repository files navigation

Python Pyppeteer HTML to image

A simple script to convert HTML files to images (PNG, JPG) or to PDF

Getting started

You need to clone this project and then install the dependencies (Pyppeteer):

pip3 install -r requirements.txt

Then simply run the given script from the command line:

./convert.py <input.html> <output.png>

A PNG file will be created in the current directory. If you simply change output file extension from .png to .jpg or .pdf you have a different output file.

About

A simple script to convert HTML files to images (PNG, JPG) or to PDF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.