iMGY : Encode anything into images & back again!

Hi :slightly_smiling_face:

I am back with a new extension!

iMGY

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

imgy-android.vercel.app

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

  • NEVER TRY TO DECODE THE SOURCE OF EXTENSION

Version 1.0

Download

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!

Thanks!

11 Likes

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

2 Likes

:grimacing:

Please read the topic and every link.

1 Like

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

1 Like

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?

1 Like

Can u say the use of this extension

1 Like

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

2 Likes

Also, documentation will be updated soon :slightly_smiling_face:

1 Like

Wow, Really Amazing Extension @Kumaraswamy :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:

3 Likes

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

3 Likes

Hello, what/how was the result? @TIMAI2

1 Like

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?

2 Likes

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.

1 Like

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

2 Likes

To prove this

Test

Here is an input file which is of text category

text.txt (5.5 KB)

And the encoded image

encoded

(3726 bytes)

Decoded back

text.txt (5.5 KB)

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

1 Like

The new version will come soon! :grin:

1 Like

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 ?

2 Likes

Version 2.0

  • Updated documentation according to the extension

  • Added ability to preserve the file name while encoding

Documentation & Download

imgy-android.vercel.app

2 Likes

will it convert csv to image

1 Like

You can encode ANYTHING (file).

2 Likes