Templates / Automated image optimizer: convert JPG/PNG to WebP with APYHub and Google Drive

Automated image optimizer: convert JPG/PNG to WebP with APYHub and Google Drive

Ready for 3.0

by Davide Boizza ✓ · 2,605 views · created 2025-03-21 · File Management, Multimodal AI

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 10 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets and Google Drive.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Set API KEY (Edit Fields (Set)): sets 1 field: apikey
  2. Get images (Google Sheets): uses Google Sheets
  3. Get extension (Code): runs custom JavaScript code
  4. JPG or PNG? (Switch): routes items into 3 branches
  5. From JPG to WEBP (HTTP Request): calls an HTTP API (POST)
  6. PNG to WEBP (HTTP Request): calls an HTTP API (POST)
  7. Update Sheet (Google Sheets): update
  8. Get file image (HTTP Request): calls an HTTP API
  9. Upload image (Google Drive): uses Google Drive

Services it uses

Google SheetsGoogle Drive

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 (7)

From the author

This workflow automates the process of converting images from JPG/PNG format to WEBP using the APYHub API. It retrieves image URLs from a Google Sheet, converts the images, and uploads the converted files to Google Drive. This workflow is a powerful tool for…

Excerpt from Davide Boizza'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.