Automatically optimise images added to a Google drive folder
Ready for 3.0What this workflow does
This workflow has 5 nodes and runs on Google Drive events (file created). Along the way it connects Google Drive. It also calls api.tinify.com over HTTP.
How it runs
Trigger: On Google Drive events (file created).
- Download image (Google Drive): download
- Optimise - Send image to TinyPNG (HTTP Request): calls api.tinify.com (POST)
- Get optimised image from tinyPNG (HTTP Request): calls an HTTP API
- Google Drive: uses Google Drive
Services it uses
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 (3)
- Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Google Drive
n8n-nodes-base.googleDrive - HTTP Request
n8n-nodes-base.httpRequest
From the author
How it works - This workflow watches a selected Google Drive folder for any images added to it. - It then takes that image, sends it the the tinypng.com service which optimises and reduces its size (where possible) - Tinypng then returns the updated image…