Skip to content

Simple and easy HTML to Image CLI converter made in Python

Notifications You must be signed in to change notification settings

Nishantbhagat57/html-to-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

html-to-image

Simple and easy HTML to Image converter CLI tool made in Python.

Usage

To use this tool, you will need to have WeasyPrint and Ghostscript installed. You can install these libraries using pip:

pip install weasyprint

pip install ghostscript

Once you have these libraries installed, you can run the tool by passing in the path to the HTML file and the desired image file path as command line arguments:

python html_to_image.py html_file_path image_file_path

For example, if your HTML file is located at "C:/Users/User/Documents/example.html" and you want to save the image as "C:/Users/User/Documents/example.jpg", you would run the following command:

python html_to_image.py "C:/Users/User/Documents/example.html" "C:/Users/User/Documents/example.jpg"

About

Simple and easy HTML to Image CLI converter made in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages