How to get the size (in pixels) of a jpeg image I get with UrlFetchApp.fetch(photoLink)?

前端 未结 2 1311
甜味超标
甜味超标 2021-01-16 07:29

In a script that sends email in HTML format I add an image that is stored in a public shared folder. I get the blob using UrlFetchApp.fetch(photoLink) but the i

2条回答
  •  猫巷女王i
    2021-01-16 07:56

    I doubt you can do this in apps script. Certainly not natively but you might be able to find or adapt a jpg library that looks at the binary blob header and extracts the image size.

提交回复
热议问题