Templates / Automatic background removal for images in Google Drive

Automatic background removal for images in Google Drive

Ready for 3.0

by Simon ✓ · 15,862 views · created 2024-11-05 · Content Creation, 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 12 nodes and runs on Google Drive events (file created). Along the way it connects Google Drive. It also calls image-api.photoroom.com over HTTP.

How it runs

Trigger: On Google Drive events (file created).

  1. Download Image (Google Drive): download
  2. Config (Edit Fields (Set)): sets 7 fields: bg_color, padding, keepInputSize…
  3. Get Image Size (Edit Image): information
  4. Merge: merges the data from its input branches
  5. Split Out: splits a list into separate items
  6. loop all over your images (Loop Over Items (Split in Batches)): loops over the items in batches
  7. check which output size method is used (If): checks a condition and branches into true / false
  8. remove background fixed size (HTTP Request): calls image-api.photoroom.com (POST)
  9. remove background (HTTP Request): calls image-api.photoroom.com (POST)
  10. Upload Picture to Google Drive (Google Drive): uses Google Drive

…plus 1 more step. See the full node list below.

Services it uses

Google Drive

HTTP calls to: image-api.photoroom.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 (9)

From the author

This n8n workflow simplifies the process of removing backgrounds from images stored in Google Drive. By leveraging the PhotoRoom API, this template enables automatic background removal, padding adjustments, and output formatting, all while storing the updated…

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