---
title: "Cropping Images in Google Slides using Google Apps Script"
author: "Martin Hawksey"
date: 2020-08-09T08:39:04+00:00
modified: 2020-08-09T08:39:07+00:00
canonical_url: https://pulse.appsscript.info/p/2020/08/cropping-images-in-google-slides-using-google-apps-script/
markdown_url: https://pulse.appsscript.info/p/2020/08/cropping-images-in-google-slides-using-google-apps-script.md
categories:
  - "Slides"
  - "Snippet"
  - "Solutions"
  - "V8"
tags:
  - "tanaikech.github.io"
featured_image: https://pulse.appsscript.info/files/2020/08/20200806a-fig1.gif
description: "Useful snippet from Tanaike which shows how you can crop images in Google Slides by using the replace(blobSource, crop) method. The  post also highlights a limitation with the image manipulation methods available around crop centering. "
---

# Cropping Images in Google Slides using Google Apps Script

![Cropping Images in Google Slides using Google Apps Script](https://pulse.appsscript.info/files/2020/08/20200806a-fig1.gif)

> [https://tanaikech.github.io/2020/08/06/cropping-images-in-google-slides-using-google-apps-script/](https://tanaikech.github.io/2020/08/06/cropping-images-in-google-slides-using-google-apps-script/)
> This is a sample script for cropping images in the Google Slides using Google Apps Script.

Useful snippet from Tanaike which shows how you can crop images in Google Slides by using the [`replace(blobSource, crop)`**](https://developers.google.com/apps-script/reference/slides/image#replaceblobsource,-crop) method. The  post also highlights a limitation with the image manipulation methods available around crop centering.

Source: *[Cropping Images in Google Slides using Google Apps Script · tanaike*](https://tanaikech.github.io/2020/08/06/cropping-images-in-google-slides-using-google-apps-script/)

---

*Published by [Martin Hawksey](https://pulse.appsscript.info/p/author/admin/) on [Pulse](https://pulse.appsscript.info/). Original article: [https://pulse.appsscript.info/p/2020/08/cropping-images-in-google-slides-using-google-apps-script/](https://pulse.appsscript.info/p/2020/08/cropping-images-in-google-slides-using-google-apps-script/)*
