Templates / 🗜️ Automate image compression in Google Drive with Tinify API and email reports

🗜️ Automate image compression in Google Drive with Tinify API and email reports

Ready for 3.0

by Samir Saci ✓ · 181 views · created 2025-11-18 · File Management

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 14 nodes and runs on a schedule (every day at 08:00). Along the way it connects Google Drive and Gmail. It also calls api.tinify.com over HTTP.

How it runs

Trigger: On a schedule (every day at 08:00).

  1. Generate Processing Id (Edit Fields (Set)): sets 1 field: processing_id
  2. Get all files (Google Drive): work with file folder
  3. Collect Logs (Data table): get
  4. Loop Over Original Files (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Loop Over Processed Files (Loop Over Items (Split in Batches)): loops over the items in batches
  6. Generate Report (Code): runs custom JavaScript code
  7. Load Raw Image (Google Drive): download
  8. Move Files to the Folder /Original (Google Drive): move
  9. Send Report (Gmail): uses Gmail
  10. Tiny URL API Call (HTTP Request): calls api.tinify.com (POST)

…plus 3 more steps. See the full node list below.

Services it uses

Google DriveGmail

HTTP calls to: api.tinify.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

Tags: Image Compression, Tinify API, TinyPNG, SEO Optimisation, E-commerce, Marketing Context Hi! I’m Samir Saci, Supply Chain Engineer, Data Scientist based in Paris, and founder of LogiGreen. I built this workflow for an agency specialising in e-commerce to…

Excerpt from Samir Saci's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.