MIT App Inventor Community iMGY : Encode anything into images & back again! Extensions iMGY : Encode anything into images & back again! Extensions KUMARASWAMY_B.G 2 1h Hi :slightly_smiling_face: I am back with a new extension! iMGY Extension version (android): 1.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. How does it work? View documentation 2 here, please note that it is like 25% outdated :sweat: Extension documentation Learn how to use extension component_event Raised when encoded to image output: the encoded image path component_event (1) Raised when decoded back to the original file output: the decoded file path component_method Turn on event listener, ex: when EncodedFile, when DecodedFile component_method (1) Encode file into image format inputName: the input file path outputName: the output file(image) path component_method (2) Decode the encoded image into the original file inputName: the encoded image name outputName: the path to save the original file 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 Download com.kumaraswamy.imgy.aix (16.1 KB) Open Source Any suggestions or improvements are always welcomed! Thanks! 1 Reply5 Reply created 1h last reply 9m 10 replies 11 views 4 users 11 likes 2 links 53 HIFI_APPS 38m I like this wonderful extension but the QR code does the same right text to QR image,QR image to text Solution 1 Reply KUMARASWAMY_B.G 37m QR code does the same right text to QR image,QR image to text :grimacing: Please read the topic and every link. 2 RepliesSolution Reply HIFI_APPS 36m Yes I understood this can convert even files to image good job👍 1 ReplySolution Reply TIMAI2 Power User KUMARASWAMY_B.G 35m 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? 2 RepliesSolution Reply HIFI_APPS 32m Can u say the use of this extension 1 ReplySolution Reply KUMARASWAMY_B.G HIFI_APPS 31m Also this as advantages over some file, it goes under compression, also you could encode big large files, whereas not in QR code 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? it would not be possible to base64 I don't understand you could also convert image to base64 for example, google drive? If you had encoded using my extension, you can do it. fun extension, Can u say the use of this extension Please read, dont go about the use, this is fun, just 4 fun 1 ReplySolution 1 Reply KUMARASWAMY_B.G 29m what you have written in the documentaiton Also, documentation will be updated soon :slightly_smiling_face: Solution Reply Salman_Dev Regular 29m 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: Solution 2 Reply TIMAI2 Power User 28m If you had encoded using my extension, you can do it. I will run a test, for "fun" :smiley: Solution 2 Reply KUMARASWAMY_B.G 9m Hello, what/how was the result? Solution Reply Mayank_Kumar Regular 4m 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? Solution 1 Reply KUMARASWAMY_B.G 1m separate images as if in a list? 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. Solution Reply Bookmark Share Flag Reply You will receive notifications because you created this topic. Suggested Topics Topic Replies Views Activity Send a character via Bluetooth 1 General Discussion bluetooth 82 308 1h 图像精灵就像地球围绕着太阳这样旋转的,代码怎么写 MIT App Inventor Help 5 26 3h My app not working on any smart phones MIT App Inventor Help 2 22 3h Alert and phone call MIT App Inventor Help 3 30 5h Not connecting to Emulator. AiStarter is working MIT App Inventor Help 0 14 8h There is 1 unread and 13 new topics remaining, or browse other topics in Extensions