Remove Advanced Background from Google Drive Images n8n Workflow Template

n8n workflow template · 12 nodes · Google Drive

Remove Advanced Background from Google Drive Images is a free n8n workflow template that starts from the Google Drive Trigger node and works with Google Drive. It has 12 nodes and no AI nodes. The notes inside the workflow say: “This workflow does watch out for new images uploaded within Google Drive. Once there are new images it will download the image. And then run some logic, remove the background and add some padding to the output image.” To run it, you add your own credentials for Google Drive OAuth2.

At a glance

Trigger
Google Drive Trigger (Watch for new images)
Nodes
12
Apps
Google Drive
AI nodes
None
Credentials
1 type
Category
Spreadsheets, databases and docs

Apps and integrations

  • Google Drive

Node types used

  • Edit Fields (Set)
  • HTTP Request
  • Split Out
  • Google Drive
  • Merge
  • Edit Image
  • Google Drive Trigger
  • If
  • Loop Over Items

Setup notes

The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.

About this worfklow

How it works

This workflow does watch out for new images uploaded within Google Drive. Once there are new images it will download the image. And then run some logic, remove the background and add some padding to the output image. By default Images are saved as.png Once done upload it to Google Drive again.

Features Select Google Drive Credentials within the Google Drive Nodes

This workflow supports

  • Remove Background
  • Transparent Background
  • Coloured Background (1 Color)
  • Add Padding
  • Choose Output Size

Customize it!

  • Feel free to customize the workflow to your needs
  • Speed up the workflow: Using fixed output size

Examples

  • Send Final Images to another service
  • For Products: Let ChatGPT Analyze the Product Type
  • Add Text with the "Edit Image" Node

Photroom API Playground

Configuration

  • Provide Your API Key
  • Set Background Color

HEX or values like white, transparent...

  • Select if Output Size / or Original Size should be used
  • Output Drive Folder
  • Padding (Default 5%)

Setup

Requirements

  • Photoroom API Key Click me
  • Google Drive Credential Setup

Config

  • Select Google Drive Credentials within the Google Drive Nodes
  • Please refer to the "Config" Node

For the API Key you can also setup an Header Authentication

Nodes in this workflow

The 12 nodes in file order (sticky notes excluded). Branches and connections determine execution order in n8n:

  1. Config (Edit Fields (Set))
  2. remove background (HTTP Request)
  3. Split Out (Split Out)
  4. Upload Picture to Google Drive (Google Drive)
  5. remove background fixed size (HTTP Request)
  6. Merge (Merge)
  7. Upload Picture to Google Drive1 (Google Drive)
  8. Download Image (Google Drive)
  9. Get Image Size (Edit Image)
  10. Watch for new images (Google Drive Trigger)
  11. check which output size method is used (If)
  12. loop all over your images (Loop Over Items)

Credentials you need

  • Google Drive OAuth2 – used by Download Image, Upload Picture to Google Drive, Upload Picture to Google Drive1 and Watch for new images

Configure your own credentials after importing. Create each credential in n8n, then select it in the node.

How to import into n8n

  1. Download the JSON file with the button above.
  2. In n8n, open a new workflow, select the ... menu and choose Import from File. You can also paste the JSON straight into the editor canvas.
  3. Open each node that shows a warning and select or create its credential.
  4. Read the notes on the canvas, test the workflow with sample data, then activate it.

Do you need somewhere to run it? Read our guide to self-hosted n8n.

Need this customised?

We can adapt this workflow to your apps, data and process, then deploy and support it.

Contact Us