Library / Image, Video & Audio
Image, Video & Audio
Remove Google Drive photo backgrounds with LassoCut and log to Google Sheets
Watches a Google Drive input folder, removes backgrounds from new JPG, PNG and WebP photos with LassoCut, saves the cut-outs and logs each result in Google Sheets.
What it does
## Google Drive photo inbox: remove backgrounds and log results in Google Sheets with LassoCut ### Who it's for E-commerce teams, photographers and marketers who drop product or portrait photos into a Google Drive folder and want clean cut-outs plus a log of what was done, without opening an image editor. ### How it works 1. New photo in the input folder checks the folder every minute. Run now lists the files already there, so you can process a backlog. 2. Keep images under 22 MB keeps JPG, PNG and WebP files and skips anything above the API limit. 3. Loop over files handles one photo at a time: download, Remove background with LassoCut, then Save the cut-out as -cutout.png in the output folder. 4. The original moves to the done folder and a row is added to your Google Sheet: date, file name, links, credits charged, width, height and detected subject type. 5. If the download, the cut-out or the upload fails (unreadable file, no credits left...), the original moves to the failed folder, the error is logged and the loop goes on. 6. Build run summary counts processed and failed photos and the credits used. ### Setup 1. Install the verified community node n8n-nodes-lassocut (Settings > Community nodes). 2. Create a free account at https://www.lassocut.com and add your API key as a LassoCut API credential. 3. Add a Google Drive OAuth2 credential on the trigger and the Drive nodes, and a Google Sheets OAuth2 credential on Append row to the log sheet. 4. Create four Drive folders (input, output, done, failed) and an empty Google Sheet with a tab named Log (headers are added on the first run). Paste their URLs in Settings and pick the same input folder in the trigger. 5. Set size to preview for a free test, click Run now, then publish the workflow. ### Requirements - Google Drive and Google Sheets. - A LassoCut account. Free accounts get 50 previews a month (up to 10 a day). A full-size result costs 1 credit. Credit packs start at $9 for 100 credits, and credits never expire. ### How to customise - Settings: background colour (empty = transparent, ffffff = white), size, format (png, jpg, webp) and size limit. - Set Subject Type or Crop to Subject in the LassoCut node options. - Send the run summary to Slack or Gmail. ### Disclosure Built by the founder of LassoCut, who maintains the n8n-nodes-lassocut node.
The steps
- New photo in the input folder
- Run now
- Settings
- Started by a new file?
- List files in the input folder
- Keep images under 22 MB
- Loop over files
- Download the photo
- Remove background with LassoCut
- Save the cut-out
- Move original to done folder
- Log row: processed
- Capture the error
- Move original to failed folder
17 steps in total.
Similar automations
Image, Video & AudioRemove Photo Backgrounds with Photoroom and Google Drive8 stepsImage, Video & AudioRemove Image Backgrounds in Google Drive Automatically12 stepsImage, Video & AudioRemove Image Backgrounds in Google Drive35 stepsImage, Video & AudioRemove Image Backgrounds from Airtable to Google Drive7 steps