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. Here's the link for the invitation.

After you receive the invitation, you can create the integration by following the steps as shown in the image below. You also need to make sure that you make the Google Drive folder public so that ShortPixel can access the URL of the image.

  1. Step #1: Select the app "Google Drive" and the Trigger Event "New File in Folder".

  2. Sign in to your Google Drive account.

  3. Select the folder you want to monitor for files.

  4. Step #2: Click on the '+' icon right after step #1.

  5. Add a new "Filter" and fill in the fields so the zap only continues if the "Mime Type" contains image/.

  6. Step #3: The third step is to configure ShortPixel. Select "SHORTPIXEL" and "Optimize Image" as shown in the image below.

  7. Select your ShortPixel account

  8. And now you need to put ShortPixel to work! :-) In the Customize Image section, select the following:
    1. File: Choose "Web Content Link" from step #1.
    2. Compression Level: Choose accordingly.
    3. Choose whether you want to convert CMYK to RGB. If you are unsure, select "True".
    4. Choose whether you want to keep the EXIF information. If you are unsure, select "False".
    5. Choose whether you want to resize your image. "Outer" means Cover and "Inner" means Contain. Learn more here.
    6. If relevant, choose the width of the resize in pixels.
    7. If relevant, choose the height of the resize in pixels.
  9. Step #4: Locate the file in Google Drive using the "Find file" action.

  10. Select your Google account.

  11. In the Customize File section, 
    1. File Name: select the "Title" value from step #1 (New File in Folder in Google Drive).
    2. Folder: select the previous folder on step #1 (New File in Folder in Google Drive).
    3. File Types: choose "Images (any format)".
  12. Step #5: replace the file using Google Drive's "Replace File":

  13. Select your Google account again.
  14. In the "Customize Replace File" section you need to fill in the following fields:
    1. Folder: Select the previous folder from step #1 (New File in Folder in Google Drive).
    2. File To Replace: Choose "Custom" and then "ID" from step #4.
    3. File: Choose the "File" field from step #3.
    4. File Name: Use "Title" from step #1 (New File in Folder in Google Drive).
    5. File Extension: Use "File Extension" from step #1 (New File in Folder in Google Drive).

That's it. Now you can add files to your Google Drive folder and they will be optimized with ShortPixel! To optimize your existing images, you will need to move them back and forth to hit the Google Drive trigger, since Google Drive does not have a list feature yet.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us