Why the below code return \'server error\' in GSuite Spreadsheet?
function test() {
var ss = SpreadsheetApp.openById(\'1Wc6nKxxxxxxxxxxxxxxxxxx0Ld6QyaY\');
In my experience, when an image is inserted by insertImage()
, the limitation is due to the image area (pixels^2) rather than the file size of it. The maximum area of image which can be inserted is 1,048,576 pixels^2.
I have experimented as follows.
From these results, I concluded the limitation for inserting image is 1,048,576 pixels^2.
So if the area of image you want to insert is more than 1,048,576 pixels^2, please resize it and try again.