iMGY : Encode anything into images & back again!

Hi :slightly_smiling_face:

I am back with a new extension!


Extension version (android): 2.0
Java original version: 3.1 (not released)

Using this fun extension, you can process ANY file into a valid image & back again without losing even a bit. The original algorithm was written 3 months ago by me, which now I made it for Android too!
It took over 2 weeks to fully complete it with every minor improvement.
Some past few days, I was working on this.

Documentation and Download

To note

  • Make sure you do not make changes to the encoded image, changing a pixel will make all data corrupt!

  • Never compress the image output

  • Compressing the image again may make the size very bigger or sometimes smaller

  • It takes time to encode file, ex 65 kb file: 4 sec

  • Decoder is 4x fast than the encoder


Version 1.0


com.kumaraswamy.imgy.aix (16.1 KB)

Open Source
  • This library does not support Android! You need to make it.

  • This library is outdated

  • New library for Android may be published soon

View license

View on GitHub

Any suggestions or improvements are always welcomed!



I like this wonderful extension but the QR code does the same right text to QR image,QR image to text

1 Like


Please read the topic and every link.

Yes I understood this can convert even files to image good job👍

From what you have written in the documentaiton, I understand that once a file is converted to an image, it would not be possible to base64 encode it again in order to upload to, for example, google drive?

Can u say the use of this extension

Also this as advantages over some file, it goes under compression, also you could encode big large files, whereas not in QR code

I don't understand you could also convert image to base64

If you had encoded using my extension, you can do it.

Please read, dont go about the use, this is fun, just 4 fun

1 Like

Also, documentation will be updated soon :slightly_smiling_face:

Wow, Really Amazing Extension @KUMARASWAMY_B.G :heart_eyes: :partying_face:
Good Job :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1:


I will run a test, for "fun" :smiley:


Hello, what/how was the result? @TIMAI2

As you said that it works for any file type, it would a lot more easier to upload PDFs to DB and then read them because I never really understood how to upload PDFs but this is really awesome just a small suggestion too, for files such as .docx, .doc, .pdf, .pptx, ppt, etc which have pages, could you make it such that for each slide or page it would return separate images as if in a list?

1 Like

Hm, but the internal work of the extension is different, it may be difficult to do. First, collect all the pages and then convert them, but how could encoded many pages, if it has text content we could make.. but if it contains many different types of content, it may not.

The best way maybe encode the whole pdf at once as it also may reduce the size.

Ok I get what you mean, never mind, the good old long PDF also looks just fine to me after all.

1 Like

To prove this


Here is an input file which is of text category

text.txt (5.5 KB)

And the encoded image


(3726 bytes)

Decoded back

text.txt (5.5 KB)

Also, you can see the size is reduced, without a bit is lost. :grinning:

The new version will come soon! :grin:

I am going to wait until you have "finished" your extension.....why post it then start updating/changing it almost immediately, isn't that what beta testing is for ?

1 Like

Version 2.0

  • Updated documentation according to the extension

  • Added ability to preserve the file name while encoding

Documentation & Download

1 Like