Creating PNG Image with Alpha Channel using Google Apps Script

This is a sample script for creating a PNG image with the alpha channel using Google Apps Script.

The PNG image with the alpha channel is the image includes the transparent background. I have been looking for the method for creating such image using Google Apps Script. It is considered that when this will be achieved, it will be able to be used for various situations. For example, it is considered the following situations.

  • Because the base data is the vector drawing, the images like the drawing can be created using Google Apps Script.
  • The custom image buttons can be created to Google Spreadsheet using Google Apps Script.
  • The custom image can be created to Google Document using Google Apps Script.

Finally, I could find it. So I would like to introduce it. When this was useful for your situation, I’m glad.

Demo

Repository

You can see the detail information including the sample script at https://github.com/tanaikech/Creating-PNG-Image-with-Alpha-Channel-using-Google-Apps-Script.

 Share!