Remove Google Drive photo backgrounds and log results to Google Sheets with LassoCut
UnknownWhat this workflow does
This workflow has 17 nodes and runs on Google Drive events (file created) (plus 1 other trigger). Along the way it connects Google Drive, Google Sheets and Lassocut (community).
How it runs
Trigger: On Google Drive events (file created) (plus 1 other trigger).
- Settings (Edit Fields (Set)): sets 10 fields: inputFolder, outputFolder, doneFolder…
- Started by a new file? (If): checks a condition and branches into true / false
- Keep images under 22 MB (Filter): keeps only the items that match a condition
- List files in the input folder (Google Drive): work with file folder
- Loop over files (Loop Over Items (Split in Batches)): loops over the items in batches
- Build run summary (Code): runs custom JavaScript code
- Download the photo (Google Drive): download
- Remove background with LassoCut (Lassocut): uses Lassocut
- Capture the error (Edit Fields (Set)): sets 2 fields: step, error
- Save the cut-out (Google Drive): uses Google Drive
…plus 5 more steps. See the full node list below.
Services it uses
Other Google Drive + Google Sheets templates (720)
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-lassocut is verified or supports 3.0 (used in Remove background with LassoCut).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Google Drive
n8n-nodes-base.googleDrive - Filter
n8n-nodes-base.filter - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Lassocut
n8n-nodes-lassocut.lassocut - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code
From the author
Quick overview This workflow monitors a Google Drive folder for new images, removes their backgrounds using LassoCut, saves the cut-outs back to Drive, and logs processing details (including errors and credits used) to a Google Sheets log. How it works 1.…