Canvas-markup generates images
Project description
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'))
<style>
* {
font-family: arial;
}
</style>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
canvas_markup-1.0.2.tar.gz
(3.9 kB
view hashes)