Optimize Google Drive images using Zapier and the ShortPixel App

In order to optimize your newly added Google Drive images with ShortPixel, you currently need to be invited to use the ShortPixel Zapier App. So please contact us here to receive an invitation.

After you receive the invitation, you can create the integration having the steps like in the image below. You also need to make sure that you make the Google Drive folder public, in order for ShortPixel to be able to access the image's URL.

  1. Select Google Drive's "New File in Folder" trigger
  2. Second step is a filter to select only images, as in the image above
  3. Third step is where you put ShortPixel to work! :)
    • Select the Reducer Sync action
    • In Edit Template, for File, select Web Content Link from the Google Drive first step.
    • Select your desired level of compression (You can read a good explanation of the compression levels here and see the differences for yourself using this free tool) and other parameters.
  4. Find the file on Google Drive using the "Find file" action, configured with FileName field from first step's (New File in Folder) Title value and File Types se to Images (any format)
  5. Replace the file using Google Drive's "Replace File" step configured like this:
    • Set "File To Replace" to "Use a custom value (advanced)"
    • Set "Custom Value for File to Replace ID" to "File to Replace" field of the "Find a File" action
    • Set "File" to the "File" field of the ShortPixel Reducer Sync step
    • Specify File Name - use "Title" from the first step - New File in Folder
    • Specify File Name - use "File Extension" from the first step - New File in Folder

That's all, now you can add files inside your Google Drive folder and they will be optimized with ShortPixel! In order to optimize your already present images, as a workaround you will need to move them back and forth, in order to fire the Google Drive's trigger, as Google Drive hasn't got a list feature yet.

Still need help? Contact Us Contact Us