Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doRisize() stopped working. #13

Closed
ryo-matsuoka84 opened this issue Jan 17, 2023 · 4 comments
Closed

doRisize() stopped working. #13

ryo-matsuoka84 opened this issue Jan 17, 2023 · 4 comments

Comments

@ryo-matsuoka84
Copy link

I am working on a tool that works with HtmlSerivce in GAS to shrink images.

The doRisize(), which used to work, does not run and gives the following error.

stack:Error: '*****************' is not compatible file. Error message is {}
    at ImgApp.DoResize (code:308:15)
    at Object.doResize (code:35:23)

On the other hand, in the test environment (different script ID) with the exact same source,
doResize() runs and shrinks the image.

Note that getSize() is still available in the same environment.

Do you have any idea what the cause might be?

@laurienason
Copy link

Yes - having the same problem - was working before and now stopped :-(

@tanaikech
Copy link
Owner

Thank you for your comment. When I tested the following script using this library, no error occurs.

const fileId = "###"; // File ID of a PNG image.
const res = ImgApp.doResize(fileId, 100);

When this script is run, res of the returned value is as follows.

{
  "blob":{},
  "identification":"PNG",
  "originalwidth":600,
  "originalheight":375,
  "resizedwidth":100,
  "resizedheight":62
}

Unfortunately, I cannot replicate your situation. I apologize for this. But, I would like to try to correctly replicate your situation. So, can you provide detailed information for correctly replicating it?

@laurienason
Copy link

laurienason commented Jan 26, 2023 via email

@tanaikech
Copy link
Owner

tanaikech commented Jan 27, 2023

Thank you for replying. From your reply, I added a query parameter for using the files on the shared drive. And updated this library to v1.3.2. Please confirm it. When I tested this, no error occurs.

If you have no permission for opening the file on the shared drive, an error occurs. Please be careful about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants