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 details)
Built Distribution
File details
Details for the file image_encoder-0.0.8.tar.gz
.
File metadata
- Download URL: image_encoder-0.0.8.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1def95acea75bf5336eae8041f9170003e21c43fb208a0eab12b96708bf6500a
|
|
MD5 |
acb1a98c88d2ae062a9abfac3ab98b74
|
|
BLAKE2b-256 |
a640311ab31be42722033ef2b72bd1babfa7776abbe570215a9ddedfe9409aa5
|
File details
Details for the file image_encoder-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: image_encoder-0.0.8-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
6fb7028249aea81398aeb38344af720442d6dbbac51d70260df0a890f9cfa5d2
|
|
MD5 |
7d0f53d17ff9e8cc729473c41f902802
|
|
BLAKE2b-256 |
6f4f7d155152d5cc4357c1b452b30fc9b38bce3db8a73c4754c55f17a9445c2d
|