A simple way to encode and decode images for REST calls
Project description
Image encoder for http
Functions
Encode: Takes in a filepath to a jpg, returns a string representation of base64 encoded bytes
Decdode: Takes a string representation of base64 encoded bytes and returns PIL image
Usage
Python
from image_encoder.image_encoder import *
to_send = encode('filepath.jpg')
image = decode(to_send)
Author
Jagath Jai Kumar
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
image_encoder-0.0.8.tar.gz
(1.6 kB
view hashes)
Built Distribution
Close
Hashes for image_encoder-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fb7028249aea81398aeb38344af720442d6dbbac51d70260df0a890f9cfa5d2 |
|
MD5 | 7d0f53d17ff9e8cc729473c41f902802 |
|
BLAKE2b-256 | 6f4f7d155152d5cc4357c1b452b30fc9b38bce3db8a73c4754c55f17a9445c2d |