Skip to main content

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)

Uploaded Source

Built Distribution

image_encoder-0.0.8-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page