Py-imgkit

Jul 20, 2023

Python wrapper to convert html to image

Python 2 and 3 wrapper for wkhtmltoimage utility to convert HTML to IMG using Webkit.

Simple example

import imgkit

imgkit.from_url’http//google.com’, ‘out.jpg’ imgkit.from_file’test.html’, ‘out.jpg’ imgkit.from_string’Hello!’, ‘out.jpg’

You can pass a list with multiple URLs or files

imgkit.from_url[‘google.com’, ‘yandex.ru’, ‘engadget.com’], ‘out.jpg’ imgkit.from_file[‘file1.html’, ‘file2.html’], ‘out.jpg’

Also you can pass an opened file

with open’file.html’ as f imgkit.from_filef, ‘out.jpg’



Checkout these related ports:
  • Zziplib - Library to provide transparent read access to zipped files
  • Zydis - Fast and lightweight x86/x86-64 disassembler library
  • Zycore-c - Support library with platform independent types, macros, etc for Zydis
  • Zthread - Platform-independent object-oriented C++ threading library
  • Zookeeper - Coordination Service for Distributed Applications
  • Zls - Zig LSP implementation + Zig Language Server
  • Zfp - High throughput library for compressed floating-point arrays
  • Zeal - Offline documentation browser
  • Zapcc - C++ caching compiler based on clang
  • Zanata-platform - Web-based translation platform
  • Zanata-cli - Zanata Java command line client
  • Z88dk - Complete Z80/Z180 development kit
  • Z80ex - ZiLOG Z80 CPU emulator library
  • Z80asm - Assembler for the Z80 microprocessor
  • Z80-asm - Z80 assembly code assembler and disassembler