Fixed
Status Update
Comments
jo...@google.com <jo...@google.com> #2
Generated Metadata
- Summary: The Apps Script application is not working as expected. The first page works, but the second page does not. It is difficult to determine the root cause without additional information.
- Tags:
Additional resources:
https://developers.google.com/apps-script/guides/support/troubleshooting https://developers.google.com/apps-script/support https://stackoverflow.com/.../how-to-debug-or-view-logs-in-google-app-scr... https://stackoverflow.com/.../appscript-webapp-hyperlink-not-working-the-... https://stackoverflow.com/.../serve-separate-html-pages-google-apps-script-...
You can
in...@gigasuperhyper.com <in...@gigasuperhyper.com> #3
Automated by Blunderbuss job workspace-devrel-public-issue-tracker-blunderbuss-autoassigner for config assign for component 191640.
jo...@google.com <jo...@google.com> #4
Hi there!
I was able to replicate this behaviour. I just sent a report about it to the team in charge of further analysis. Future updates will be posted here. Thank you for your feedback, have a nice day.
ma...@gmail.com <ma...@gmail.com> #5
Comment has been deleted.
ma...@gmail.com <ma...@gmail.com> #6
for(let i =0; i < 10; ++i) {
var blob = ur1fetchapp .fetch(ur1) .getblob();
var img = paragraph,addpositionedimage(blob);
console.log(''image height: '' +img.getheight
img.setheight(img.getheight() *0,9);
}
function myfunction() {
var doc = documentapp.openbyid(inserityourdocidhere'');
var url = ''https://drive.goggle.com/uc?id=zsrqx-9y9iz322k3mtus-qwynri9vbhi&exp
const body = doc.getbody();
const paragraph = body.appendparagraph("sampleparagraph");
for (let i = 0; i < 10 ++i) {
var blob = urlfetchapp.fetch(url).getblob().copyblob();
var img =paragraph.affpositionedimage(blob);
console.log("image original height: " + img.getheight());
img.setheight(img.getheight() * 0.9);
console.log("image new height: " + img.getheight());
}
} componentid:327918
is...@google.com <is...@google.com>
jp...@google.com <jp...@google.com> #7
I am marking this issue as FIXED
as the internally reported issue has been marked as FIXED
. Please note that there may be a delay in rolling this out to production. Thank you for your patience and please comment here if the issue remains.
Description
The following code should download and instantiate 10 identical images, scaling each by 0.9 from the original.
However, it seems (?) the returned blob is cached and that image somehow uses the blob when scaling, because the end result in the logs is the following:
I'd expect the blob used by the image to not be shared across images. Even using
var blob = UrlFetchApp.fetch(url).getBlob().copyBlob();
(with a fresh noncached image, or at least I tried to do this) returns images with different sizes:The URLs are PNG images from my Google Drive, eg,
https://drive.google.com/uc?id=IMAGEIDHERE&export=download
.This all looks weird but I just don't understand what's going on.