Base64 Image Handler for Data URIs
Project description
Base64-encoded images for HTML data URIs.
pip install base64image
Examples
```python from base64image import Base64Image b64_image = Base64Image.from_file(“wowo.png”) image_element = ‘’ % base64_image
base64_image = Base64Image.from_base64_image_string(”…”) pil_image = base64_image.get_pil_image()
base64_image = Base64Image.from_url(”http://example.org/haha.jpg”) base64_image.to_file(“haha.jpg”)
base64_image.image_format base64_image.base64_image_string base64_image.image_string ``
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
base64image-0.3.0.tar.gz
(2.4 kB
view hashes)