Skip to content

Xpos587/canvas-markup-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: MIT




Canvas-markup

Canvas-markup - It lib is used to render html to image

Example

#  main.py:

import canvas_markup
import asyncio

markup = canvas_markup.Markup()

# Rendering the file index.ejs and saving it as a png.
markup.renderFile('./index.html', { 'title': 'Markup', 'description': 'Made with Canvas-Markup©' })
# Setting the viewport of the display to 1920x1080.
markup.setViewport(1920, 1080)
asyncio.run(markup.save('./image.png'))

See index.html

<style> * { font-family: arial; } </style>

About

Canvas-markup generates images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published