Streamline your content pipeline with this n8n workflow. Automatically monitor Google Drive for new images, optimize them using TinyPNG, and save the compressed files back to the cloud.
Download this n8n workflow template and start using it instantly.
Web developers needing lightweight assets.
Content managers looking to optimize image loading times.
Users seeking to automate cloud storage management tasks.
Anyone interested in using an efficient n8n template for external API integration.
Managing high-resolution images can quickly consume cloud storage and slow down websites. This specialized n8n workflow addresses this challenge by providing a fully automated image optimization solution. By leveraging the power of the TinyPNG API, this n8n template ensures that every image uploaded to a designated Google Drive folder is instantly compressed without quality loss.
This robust n8n automation eliminates the manual steps of downloading, compressing, and re-uploading files. It utilizes the Google Drive n8n node set for seamless integration, offering an excellent example of how n8n can connect cloud services with external processing tools to create powerful, hands-off processes. Setting up this n8n workflow is straightforward, requiring only Google Drive and TinyPNG credentials.
The operation of this n8n workflow begins with a specialized n8n trigger. The process unfolds as follows:
fileCreated event. When a new image is added, the n8n workflow is activated.https://api.tinify.com/shrink) using a POST method. This step requires the user to configure the Authorization header with their Base64-encoded TinyPNG API key, as detailed in the setup sticky notes.location header pointing to the optimized image resource. The subsequent HTTP Request n8n node dynamically retrieves this URL ({{ $json.headers.location }}) to download the compressed binary data.To deploy this n8n workflow, follow these steps:
Basic YOURAPIKEYINBASE_64 (e.g., encoded using tools like base64encode.org).This n8n workflow leverages several key n8n node components:
Check GDrive for new images (Google Drive Trigger): This critical n8n trigger initiates the automation. It is configured to watch a specific Google Drive folder for the fileCreated event, ensuring the n8n workflow runs instantly upon upload.
Download image (Google Drive n8n node): Function is set to 'download'. It uses an expression (={{ $json.id }}) to dynamically retrieve the ID of the file that triggered the automation.
Optimise - Send image to TinyPNG (HTTP Request n8n node): This node handles the submission of the image for optimization. Key configuration includes setting the method to POST, content type to binaryData, and securely transmitting the TinyPNG API key via the Basic Authorization header.
Get optimised image from tinyPNG (HTTP Request n8n node): This node uses a dynamic URL derived from the previous node's response headers (={{ $json.headers.location }}) to fetch the newly optimized image data.
Deploy this powerful n8n workflow to automatically generate personalized training certificates with unique IDs and instantly deliver them to recipients using Gmail. Perfect for educational platforms.

Use this reliable n8n workflow to automatically synchronize metadata for tagged n8n templates and workflows directly into a Notion database for centralized management and governance.

Automate infrastructure governance using this essential n8n workflow. Periodically back up active n8n templates to GitHub and generate documentation summaries in Notion using the OpenAI n8n node.

Use this powerful n8n workflow to automatically fetch your latest YouTube video, generate engaging posts using OpenAI, enforce character limits, and publish directly to X (Twitter).

Optimize your self-hosted n8n instance performance by automatically deleting old execution history. This essential n8n workflow uses the internal n8n node to manage database size.









































