Get Thumbnail

Generates a thumbnail of the latest version of the specified page in the presentation and returns a URL to the thumbnail image

4 variables
3 variables

Generates a thumbnail of the latest version of the specified page in the presentation and returns a URL to the thumbnail image.

This request counts as an expensive read request for quota purposes

Authorization

To use this building block you will have to grant access to at least one of the following scopes:

  • See, edit, create, and delete all of your Google Drive files
  • View and manage Google Drive files and folders that you have opened or created with this app
  • See and download all your Google Drive files
  • View and manage your Google Slides presentations
  • View your Google Slides presentations

Input

This building block consumes 4 input parameters

  = Parameter name
  = Format

presentationId STRING Required

The ID of the presentation to retrieve

pageObjectId STRING Required

The object ID of the page whose thumbnail to retrieve

thumbnailProperties.mimeType ENUMERATION

The optional mime type of the thumbnail image.

If you don't specify the mime type, the default mime type will be PNG

thumbnailProperties.thumbnailSize ENUMERATION

The optional thumbnail image size.

If you don't specify the size, the server chooses a default size of the image

Output

This building block provides 3 output parameters

  = Parameter name
  = Format

height INTEGER

The positive height in pixels of the thumbnail image

contentUrl STRING

The content URL of the thumbnail image.

The URL to the image has a default lifetime of 30 minutes. This URL is tagged with the account of the requester. Anyone with the URL effectively accesses the image as the original requester. Access to the image may be lost if the presentation's sharing settings change. The mime type of the thumbnail image is the same as specified in the GetPageThumbnailRequest

width INTEGER

The positive width in pixels of the thumbnail image