Convert Image to Base64 Data URI

In Spreadsheet Paintings, you upload a photograph from the local disk and it transforms the picture into pixel art. Internally, the JavaScript resizes the image using the HTML5 Canvas API and then uploads the base64-encoded representation of the canvas data to the Google Script using the HTMLService where the pixels are converted into RGB colors.

Related

Amit Agarwal is a web geek, ex-columnist for The Wall Street Journal and founder of Digital Inspiration, a hugely popular tech how-to website since 2004. He holds an engineering degree in Computer Science from IIT and happens to be the first professional blogger in India. He's been profiled on Lifehacker. With 19 years' experience in software development, Amit has authored several popular Google Add-ons that are deployed in some of the biggest companies and universities worldwide with over 250,000 installations. Download the PDF brochure to know more.