Paint the EML to a single PNG image.
Project description
eml2png
Paint the EML to a single PNG image.
Installing
You'll need wkhtmltopdf before you start working with eml2png, so install them first:
- Debian/Ubuntu:
sudo apt-get install wkhtmltopdf
- MacOSX
brew install wkhtmltopdf
- Windows and other options: check wkhtmltopdf homepage for binary installers or wiki page.
Install eml2png:
pip install eml2png
Usage
Simple example:
import eml2png
with open('message.png', 'wb') as f:
f.write(eml2png.to_png('message.eml'))
Export your wkhtmltopdf's install path if not /usr/bin/wkhtmltoimage
:
export WKHTMLTOIMAGE="/usr/local/bin/wkhtmltoimage"
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
eml2png-0.0.2.tar.gz
(14.6 MB
view hashes)
Built Distribution
Close
Hashes for eml2png-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afb57242ed079dc3fa4e4f52b050b8e0fa2a714f3d66077ff3b28fab20ea9c3f |
|
MD5 | 23382e7a5d5e6f98daa90d274fcbea4d |
|
BLAKE2b-256 | 3646a49fd1c58b80140061205543b987197903aeed423b574cc529665062d405 |