Get Started
Screenshot of n8n workflow
FREE TEMPLATE
Automate Google Drive Image Compression
1
Views
0
Downloads
10
Nodes
Download Template
Free
Preview Template
Utility Rating
7 / 10
Business Function
Marketing
Automation Orchestrator
n8n
Integrations
TinyPNG
Google Drive
Trigger Type
Schedule
Approx setup time ≈ 35 min
Need help setting up this template?
Ask in our free Futurise community
About
Community
Courses
Events
Members
Templates

How to Automate Google Drive Image Compression?

Leon Petrou
FREE TEMPLATE
Automate Google Drive Image Compression
1
Views
0
Downloads
10
Nodes
Download Template
Free
Preview Template
Utility Rating
7 / 10
Business Function
Marketing
Automation Orchestrator
n8n
Integrations
TinyPNG
Google Drive
Trigger Type
Schedule
Approximate setup time ≈ 35 minutes
Need help setting up this template?
Ask in our free Futurise community

Description

Keep your image library lean without manual work. New images dropped into a chosen Google Drive folder are compressed and saved to another folder, ready for web and sharing. Ideal for marketing teams, ecommerce stores, and anyone who handles many images.

The flow is simple and reliable. A Google Drive trigger checks a specific folder every minute for new files. When it finds one, it downloads the image, sends the binary file to TinyPNG using an HTTP request, reads the location from the response, then fetches the optimized file. The final step uploads the smaller image to a selected Google Drive folder and adds the word optimised to the file name. This cuts file sizes and speeds up publishing without anyone touching the files.

Setup takes a few minutes and uses your Google Drive account and a TinyPNG API key. Expect faster page loads, smaller storage use, and a simple pipeline that runs on its own. Great for product photos, blog graphics, and social media assets that need to stay light and fast.

Copy link

Tools Required

TinyPNG
Sign up
Free tier: 500 free API compressions / mo; additional: $0.009 per image up to 10,000, then $0.002 per image
n8n
Sign up
$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.
Google Drive
Sign up
Drive API: $0 (no additional cost; quota-limited)

What this workflow does?

  • Folder watch in Google Drive that checks every minute for new files
  • Direct image download from Google Drive using the file id
  • Binary upload to TinyPNG via HTTP request for compression
  • Full response handling to read the location header for the optimized file
  • Follow up HTTP GET to fetch the optimized image from TinyPNG
  • Upload of the optimized image to a chosen Google Drive folder with an optimised suffix

What are the benefits?

  • Reduce manual work from five steps to zero per image
  • Cut processing time from about ten minutes to around one minute end to end
  • Connect Google Drive and TinyPNG with no extra tools
  • Handle more images each day without adding staff time
  • Publish lighter images that load faster and help SEO

How to set this up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Google Drive and TinyPNG. See the Tools Required section above for links to create accounts with these services.
  3. In Google Drive, create an input folder for new images and an output folder where optimized files will be saved.
  4. In n8n, double click any Google Drive node, then on the Credential to connect with dropdown, click Create new credential and follow the on screen instructions to connect your Google account. Give the credential a clear name.
  5. Open the Check GDrive for new images node. Select your Drive credential, choose Specific folder, and pick the input folder. Set the event to file created and confirm it is polling every minute.
  6. Open the Download image node. Use the same Google Drive credential. Confirm operation is Download and the file id is set to the incoming id. The binary property name should be data to match later steps.
  7. Open the Optimise Send image to TinyPNG HTTP Request node. Set Method to POST and URL to https://api.tinify.com/shrink. In Headers, set Authorization to Basic followed by your base64 encoded TinyPNG API key. Make sure Send Binary Data is on and Input Data Field Name is data.
  8. Create your TinyPNG API key in your TinyPNG account. If unsure, open the HTTP node, choose Create new credential if available or keep using the header approach, and follow on screen instructions.
  9. Open the Get optimised image from tinyPNG HTTP Request node. Confirm the URL is set to the location header from the previous response using the expression and that Method is GET.
  10. Open the final Google Drive node. Choose your Drive credential, set operation to Upload, pick the output folder, and set a file name that adds the word optimised to the original name.
  11. Turn on the workflow. Drop a test image into the input folder. Check n8n execution logs and confirm a smaller file appears in the output folder.
  12. If nothing happens, verify the watched folder is correct, confirm the TinyPNG Authorization header value, check that the binary field name is data in both HTTP nodes, and make sure your Google account has access to both folders.

Need help or want to customize this?

Similar Templates

n8n
Marketing
Generate YouTube Shorts from Google Sheets
Create short videos for YouTube by pulling a quote and creative prompts from Google Sheets, building the background image and video with AI, adding ambient sound, and publishing the final clip to your channel. Great for social teams and creators who want steady content without manual editing. A manual start reads one row from Google Sheets with the quote, author, and scene prompts. The flow calls an image model to render a vertical image, waits, then writes the image link back to the sheet. It then sends that image to a video model to produce a cinematic vertical clip, waits again, downloads the file, and records the video link in the sheet. Audio is generated with a voice and sound service, stored to Google Drive, and the drive link is saved. A code node formats overlay text, then FFmpeg merges video, audio, and on screen text into a final MP4. The clip uploads to YouTube with a resumable upload, and the sheet is updated with status and the YouTube link. You will need API keys for the AI services, Google and YouTube OAuth, and FFmpeg installed on the n8n host. Expect one run to replace hours of editing with a repeatable system managed from a spreadsheet. Ideal for daily quotes, quick tips, or listicle shorts driven by your sheet.
13 views
view
n8n
Marketing
Automate Google Drive Resume Q&A
Turn a resume in Google Drive into a smart chat that answers questions and sends a daily email report. Ideal for personal sites, career pages, or portfolios that want simple Q&A and clear insights without manual updates. When a file is added or changed in a chosen Google Drive folder, the text is split into chunks, embedded with Google Gemini, and stored in Pinecone. A public chat webhook lets visitors ask questions. The agent uses the vector store, a memory buffer, and the Gemini chat model to give grounded answers. A separate webhook can save conversation logs to NocoDB. Each day on schedule, the workflow pulls today’s conversations, groups them by session and email, formats them as HTML, and emails a summary from Gmail. Setup needs Google Drive, Gmail, Pinecone, Google Gemini, and NocoDB credentials in n8n. Expect less manual work, faster updates when the resume changes, and one clear email summary at the end of the day. Use it for personal branding, HR portfolios, or team pages that need quick, accurate answers based on the latest resume content.
60 views
view
n8n
Marketing
Sync WordPress to Google Drive Content Reports
Content teams often need a fresh list of live posts for reports and audits. This setup pulls all published posts from WordPress and saves a clean CSV file straight to Google Drive. It is ideal for marketers, editors, and agencies that want quick exports without copy and paste. Under the hood, a manual trigger starts the run. The workflow fetches all published posts from WordPress, then uses a field mapping step to keep only the columns you want, like id and title. Next it turns the result into a CSV file and uploads it to your chosen Google Drive folder using a service account. You get a consistent file that is ready for Google Sheets, with only live content included, and the same format every time. You will need WordPress access and a Google Drive account with a service account set up. Connect both in n8n, select the fields you care about in the Adjust Fields step, and click Test to generate your first export. Expect a ready file in minutes and a big cut in manual work. This is great for monthly content reviews, SEO audits, campaign summaries, and client deliverables.
11 views
view
See More Templates

These templates were sourced from publicly available materials across the web, including n8n’s official website, YouTube and public GitHub repositories. We have consolidated and categorized them for easy search and filtering, and supplemented them with links to integrations, step-by-step setup instructions, and personalized support in the Futurise community. Content in this library is provided for education, evaluation and internal use. Users are responsible for checking and complying with the license terms with the author of the templates before commercial use or redistribution.Where an original author was identified, attribution has been provided. Some templates did not include author information. If you know who created this template, please let us know so we can add the appropriate credit and reference link. If you are the author and would like this template removed from the library, email us at info@futurise.com and we will remove it promptly.