Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Encode images in form of text and decode again!!

Project description

first import the package on your terminal with pip:

pip3 install im2txt

next you import the module:

import im2txt

now you just need to encode the image of your preference:

im2txt.encode('/path/to/image/pooptest.jpg')

you will receive a pooptest.txt file. This file will have the pixel value of all pixels on the image.

To decode the .txt file back to an image we use:

im2txt.decode('path/to/txtfile/pooptest.txt')

you will receive the encoded image back again in form of .png!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for im2txt, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size im2txt-0.0.3.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page