{"id":1003,"date":"2024-05-07T11:49:06","date_gmt":"2024-05-07T11:49:06","guid":{"rendered":"https:\/\/kb.shortpixel.com\/docs\/optimize-google-drive-images-using-zapier-and-the-shortpixel-app\/"},"modified":"2025-08-27T08:37:39","modified_gmt":"2025-08-27T08:37:39","password":"","slug":"optimize-google-drive-images-using-zapier-and-the-shortpixel-app","status":"publish","type":"docs","link":"https:\/\/kb.shortpixel.com\/knowledge-base\/article\/optimize-google-drive-images-using-zapier-and-the-shortpixel-app\/","title":{"rendered":"Optimize Google Drive images using Zapier and the ShortPixel App"},"content":{"rendered":"\n<p>In order to optimize your newly added Google Drive images with ShortPixel, you currently need to be invited to use the ShortPixel Zapier app. <a href=\"https:\/\/zapier.com\/developer\/invite\/97921\/2a5d06031a70028b8d767306f663a832\/\" target=\"_blank\" rel=\"noopener\">Here&#8217;s the link<\/a> for the invitation.<\/p>\n\n\n\n<p>After you receive the invitation, you can create the integration by following the steps as shown in the image below. <\/p>\n\n\n\n<section class=\"callout-red\">Your Google Drive folder <strong>must<\/strong> be public\u00a0so that ShortPixel can access the URL of the image.<\/section>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Step #1<\/strong>: Select the app &#8220;Google Drive&#8221; and the Trigger Event &#8220;<strong>New File in Folder<\/strong>&#8220;.<br><figure><img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-gqcwK4Xnj7.jpg\"><\/figure><\/li>\n\n\n\n<li>Sign in to your Google Drive account.<br><figure><img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-UFuipWOyL4.jpg\"><\/figure><\/li>\n\n\n\n<li>Select the folder you want to monitor for files.<br><figure><img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-60dwrYdTvr.jpg\"><\/figure><\/li>\n\n\n\n<li><strong>Step #2<\/strong>: Click on the &#8216;+&#8217; icon right after step #1.<br><figure><img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-xHEtG9N4NC.jpg\"><\/figure><\/li>\n\n\n\n<li>Add a new &#8220;<strong>Filter<\/strong>&#8221; and fill in the fields so the zap only continues if the &#8220;<strong>Mime Type<\/strong>&#8221; contains <code>image\/<\/code>.<br><figure><img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-Q13Ilk5P3p.jpg\"><\/figure><\/li>\n\n\n\n<li><strong>Step #3<\/strong>: The third step is to configure ShortPixel. Select &#8220;<strong>SHORTPIXEL<\/strong>&#8221; and &#8220;<strong>Optimize Image<\/strong>&#8221; as shown in the image below.<br><figure><img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-iF0MwBPO0G.jpg\"><\/figure><\/li>\n\n\n\n<li><p>Select your ShortPixel account <br><img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-K0Wyd14FDD.jpg\"><\/p><\/li>\n\n\n\n<li>And now you need to put ShortPixel to work! \ud83d\ude42 In the Customize Image section, select the following:\n<ol class=\"wp-block-list\">\n<li><strong>File<\/strong>: Choose &#8220;Web Content Link&#8221; from step #1.<\/li>\n\n\n\n<li><strong>Compression Level<\/strong>: Choose <a href=\"https:\/\/shortpixel.com\/knowledge-base\/article\/lossy-glossy-or-lossless-which-one-is-the-best-for-me\/\" rel=\"noopener\">accordingly<\/a>.<\/li>\n\n\n\n<li>Choose whether you want to convert <strong>CMYK to RGB<\/strong>. If you are unsure, select &#8220;True&#8221;.<\/li>\n\n\n\n<li>Choose whether you want to <strong>keep the EXIF<\/strong> information. If you are unsure, select &#8220;False&#8221;.<\/li>\n\n\n\n<li>Choose whether you want to <strong>resize <\/strong>your image. &#8220;<strong>Outer<\/strong>&#8221; means Cover and &#8220;<strong>Inner<\/strong>&#8221; means Contain.\u00a0Learn more <a href=\"https:\/\/blog.shortpixel.com\/resize-images\/\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/li>\n\n\n\n<li>If relevant, choose the <strong>width of the\u00a0<\/strong><strong>resize <\/strong>in pixels.<\/li>\n\n\n\n<li>If relevant, choose the <strong>height of the\u00a0<\/strong><strong>resize<\/strong>\u00a0in pixels.<br><figure><img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-4hg8NzFRnN.jpg\"><\/figure><\/li>\n<\/ol>\n<\/li>\n\n\n\n<li><strong>Step #4<\/strong>: Locate the file in Google Drive using the &#8220;<strong>Find file<\/strong>&#8221; action.<br><figure><img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-NeOVmwQWy4.jpg\"><\/figure><\/li>\n\n\n\n<li><p>Select your Google account.<\/p><\/li>\n\n\n\n<li>In the Customize File section,\n<ol class=\"wp-block-list\">\n<li><strong>File Name<\/strong>: select the &#8220;Title&#8221; value from step #1 (New File in Folder in Google Drive).<\/li>\n\n\n\n<li><strong>Folder<\/strong>: select the previous folder on step #1 (New File in Folder in Google Drive).<\/li>\n\n\n\n<li><strong>File Types<\/strong>: choose &#8220;Images (any format)&#8221;.<br><figure><img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-fiUFwX9wgP.jpg\"><\/figure><\/li>\n<\/ol>\n<\/li>\n\n\n\n<li><strong>Step #5<\/strong>: replace the file using Google Drive&#8217;s &#8220;<strong>Replace File<\/strong>&#8220;:<br><figure><img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-xCjHzr2TlV.jpg\"><\/figure><\/li>\n\n\n\n<li>Select your Google account again.<\/li>\n\n\n\n<li>In the &#8220;Customize Replace File&#8221; section you need to fill in the following fields:\n<ol class=\"wp-block-list\">\n<li><strong>Folder<\/strong>: Select the previous folder from step #1 (New File in Folder in Google Drive).<\/li>\n\n\n\n<li><strong>File To Replace<\/strong>: Choose &#8220;Custom&#8221; and then &#8220;ID&#8221; from step #4.<br><figure><img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-DAS1WgiGDn.jpg\"><\/figure><\/li>\n\n\n\n<li><strong>File<\/strong>: Choose the &#8220;File&#8221; field from step #3.<\/li>\n\n\n\n<li><strong>File Name<\/strong>: Use &#8220;Title&#8221; from step #1 (New File in Folder in Google Drive).<\/li>\n\n\n\n<li><strong>File Extension<\/strong>: Use &#8220;File Extension&#8221; from step #1 (New File in Folder in Google Drive).<br><figure><img decoding=\"async\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2025\/08\/file-ivulXv6cJJ.jpg\"><\/figure><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n\n\n\n<p>That&#8217;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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;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. Your Google Drive folder must [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[50],"glossaries":[],"doc_tag":[],"class_list":["post-1003","docs","type-docs","status-publish","hentry","doc_category-zapier"],"blocksy_meta":[],"year_month":"2026-04","word_count":438,"total_views":"1417","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin","author_nicename":"admin_mdli53m5","author_url":"https:\/\/kb.shortpixel.com\/author\/admin_mdli53m5\/"},"doc_category_info":[{"term_name":"Zapier","term_url":"https:\/\/kb.shortpixel.com\/knowledge-base\/category\/zapier\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/1003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/comments?post=1003"}],"version-history":[{"count":2,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/1003\/revisions"}],"predecessor-version":[{"id":2218,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/1003\/revisions\/2218"}],"wp:attachment":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/media?parent=1003"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_category?post=1003"},{"taxonomy":"glossaries","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/glossaries?post=1003"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_tag?post=1003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}