Skip to main content
googleSlides.replaceImage replace an existing image while preserving its object ID.

Example

Inputs

Provide presentation, image objectId, and a public HTTP(S) imageUrl shorter than 2 KB. replaceMethod defaults to centerCrop. A second argument with account selects a Google Account.

Output

Returns the presentation ID and resulting revision ID. Google must be able to fetch the image as a PNG, JPEG, or GIF smaller than 50 MB and no larger than 25 megapixels.