Anyone looking to reformat their JPG or PNG images for Instagram can now use the Image-Formatter Python code without having to download or run it themselves!
The user can upload any number of images to the website. Each image will be processed, resized, and placed on a white background if needed. Once all of the images have been formatted, the user simply downloads them! No need to download or run any python!
So, how does it work?
The secret sauce here is a Python based web app company called Anvil. With their program, I am able to execute python scripts from the web. For this particular implementation, I have the Image-Formatter python script available to run on a 2011 Mac Mini computer in my living room which acts as a server. Whenever a user asks to have their images formatted, the images are sent by Anvil to my server. The server formats each image, sends them back, and then deletes them locally. The user can then download the images from Anvil, and again they are deleted from Anvil after each download. 

The result is a very simple but useful web implementation of pure python code.
Try it out and let me know if you have any feedback! 

Check out these awesome projects too!

Back to Top