feat(slides): Get or download a rendered thumbnail for a slide#498
Open
gianpaj wants to merge 1 commit intosteipete:mainfrom
Open
feat(slides): Get or download a rendered thumbnail for a slide#498gianpaj wants to merge 1 commit intosteipete:mainfrom
gianpaj wants to merge 1 commit intosteipete:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Using the Google Workspace API:
https://developers.google.com/workspace/slides/api/reference/rest/v1/presentations.pages/getThumbnail
Example:
$ gog slides list-slides 1bnEb7_gvB5SH-xxx Presentation: Mars: The New Frontier (7 slides) # OBJECT ID 1 p 2 slide_1 3 slide_2 4 slide_3 5 slide_4 6 slide_5 7 slide_6 $ gog slides thumbnail 1bnEb7_gvB5SH-xxx slide_1 --output slide-2.png presentationId 1bnEb7_gvB5SH-xxx slideId slide_1 url https://lh7-us.googleusercontent.com/docsdf/xxx-eZm-zzz-yyy=s1600 width 1600 height 900 size large format png output slide-2.png bytes 60950downloaded img