Skip to main content

Canvas-markup generates images

Project description

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>

Project details


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 details)

Uploaded Source

File details

Details for the file canvas_markup-1.0.2.tar.gz.

File metadata

  • Download URL: canvas_markup-1.0.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for canvas_markup-1.0.2.tar.gz
Algorithm Hash digest
SHA256 45cfc810689708005a3f65e499ab02ce76bc2d516c18f2dc73ca54d369139d8c
MD5 5b5b968923b8c45896e678c6f7868454
BLAKE2b-256 9f7c5b625d68f9245427ee1cbc6908daf496e3440a44b5e23de491f3be7fa10d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page