---
title: "Exporting high-resolution PNG images of Google Slides with Google Apps Script"
author: "Martin Hawksey"
date: 2024-07-31T20:20:58+00:00
canonical_url: https://pulse.appsscript.info/p/2024/07/exporting-high-resolution-png-images-of-google-slides-with-google-apps-script/
markdown_url: https://pulse.appsscript.info/p/2024/07/exporting-high-resolution-png-images-of-google-slides-with-google-apps-script.md
categories:
  - "Beginner"
  - "Drive"
  - "Slides"
  - "Snippet"
  - "Solutions"
tags:
  - "@labnol"
  - "labnol.org"
featured_image: https://pulse.appsscript.info/files/2024/07/SG93IHRvIENvbnZlcnQgR29vZ2xlIFNsaWRlcyB0byBQTkcgSW1hZ2VzIHdpdGggR29vZ2xlIFNjcmlwdA.drlKM5L4HdfPt_VZBlzMPs89pHKQkmsvwBvfK2EExMQ.png
description: "Here’s a useful snippet from Amit Agarwal exploring two methods exploring how to convert Google Slides to PNG images with Google Apps Script. The first approach uses the Google Slides API to get the thumbnail images of the slides, fetch the blob of the image, and then upload it to Google Drive. However, this method has limitations including predefined fixed widths and requires two URL fetches. The second approach uses the Google Drive API, which offers advantages like generating images with the same resolution as the original slide and requiring a single URL fetch. For both code snippets follow the source link."
---

# Exporting high-resolution PNG images of Google Slides with Google Apps Script

![Exporting high-resolution PNG images of Google Slides with Google Apps Script](https://pulse.appsscript.info/files/2024/07/SG93IHRvIENvbnZlcnQgR29vZ2xlIFNsaWRlcyB0byBQTkcgSW1hZ2VzIHdpdGggR29vZ2xlIFNjcmlwdA.drlKM5L4HdfPt_VZBlzMPs89pHKQkmsvwBvfK2EExMQ.png)

> [https://www.labnol.org/code/20580-google-slide-screenshot-images](https://www.labnol.org/code/20580-google-slide-screenshot-images)
> Learn how to convert Google Slides into high-resolution PNG images using Google Apps Script. Choose between the Google Slides API and the Google Drive API based on your requirements.

Here’s a useful snippet from Amit Agarwal exploring two methods exploring how to convert Google Slides to PNG images with Google Apps Script. The first approach uses the Google Slides API to get the thumbnail images of the slides, fetch the blob of the image, and then upload it to Google Drive. However, this method has limitations including predefined fixed widths and requires two URL fetches.

The second approach uses the Google Drive API, which offers advantages like generating images with the same resolution as the original slide and requiring a single URL fetch. For both code snippets follow the source link.

Source: *[How to Convert Google Slides to PNG Images with Google Script – Digital Inspiration*](https://www.labnol.org/code/20580-google-slide-screenshot-images)

---

*Published by [Martin Hawksey](https://pulse.appsscript.info/p/author/admin/) on [Pulse](https://pulse.appsscript.info/). Original article: [https://pulse.appsscript.info/p/2024/07/exporting-high-resolution-png-images-of-google-slides-with-google-apps-script/](https://pulse.appsscript.info/p/2024/07/exporting-high-resolution-png-images-of-google-slides-with-google-apps-script/)*
