Insert Image Google Doc Module

Id like to add an image to a google doc from a search module iin a Google Drive Folder.

I seem to be having an issue with the image URL. It keep giving me

[400] Invalid requests[1].insertInlineImage: Access to the provided image was forbidden.

Or

[400] Invalid requests[1].insertInlineImage: There was a problem retrieving the image. The provided image should be publicly accessible, within size limit, and in supported formats.

Normally the file meets all those criteria. 126kb, Google account has access, and is in a PNG format.

When i use Web View link i get the first error and Web Content link i get the second. Am i using hte wrong URL? Or can I not use google dive images? I even tried adding a download modual before and it still didnt work.

I read that the images on google doc have to be inline with the document, which somewhat defeats the purpose. and i assumed thats what the Inser and replace image module was for.

Sheets to Doc (webhook)  MakeGoogle Chrome -Screenshot on2024-02-27 (000578)

Ive tried adding various modules to try and work around it. All of which complete except when it comes to actually replacing the image.

Any help would be appreciates, Thank you.

3 Likes

Same error. Did you solve it?

Solved

In my case, I was working with an image which I manually changed time ago from .webp to a .png, (typical case for ex. when downloading an image from DALL-E from OpenAI).

Te problem here is that even though you change it the format, and when you open it with a editor you will see a png image, the mime/type does not change.

The mime/types supported are: The mimeTypes which can be inserted to Google Docs are image/jpeg, image/png and image/gif. There conditions are the same for Spreadsheet, Document and Slides.

So, basically I did this:

And it worked out.

Hope this helps to other people!

:slight_smile:

2 Likes