← All N8N workflows
Media & contentEdit ImageGoogle DriveGoogle Drive TriggerHTTP RequestIf

Remove Advanced Background from Google Drive Images

Configured with Edit Image, Google Drive, Google Drive Trigger, HTTP Request, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TransformConfigEdit FieldsWeb / APIremove backgroundHTTP RequestTransformSplit OutSplit OutFiles / mediaUpload Picture toGoogle DriveGoogle DriveWeb / APIremove background fixedsizeHTTP RequestTransformMergeMergeFiles / mediaUpload Picture toGoogle Drive1Google DriveFiles / mediaDownload ImageGoogle DriveFiles / mediaGet Image SizeEdit ImageTriggerWatch for new imagesGoogle Drive TriggerRoutingcheck which output sizemethod is usedIfRoutingloop all over yourimagesLoop Over Items

Node categories in this workflow

  • Transform
  • Web / API
  • Files / media
  • Trigger
  • Routing

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
ConfigTransformEdit FieldsSee node parameters
remove backgroundWeb / APIHTTP RequestPOST
Split OutTransformSplit OutSee node parameters
Upload Picture to Google DriveFiles / mediaGoogle DriveSee node parameters
remove background fixed sizeWeb / APIHTTP RequestPOST
MergeTransformMergeSee node parameters
Upload Picture to Google Drive1Files / mediaGoogle DriveSee node parameters
Download ImageFiles / mediaGoogle Drivedownload
Get Image SizeFiles / mediaEdit Imageinformation
Watch for new imagesTriggerGoogle Drive TriggerSee node parameters
check which output size method is usedRoutingIfSee node parameters
loop all over your imagesRoutingLoop Over ItemsSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • googleDriveOAuth2Api

Workflow notes

About this worfklow

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

Click me

Setup

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

Sticky Note3

Select Input Folder

Configuration

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 ->Copy URL
  • Padding (Default 5%)
Remove Advanced Background from Google Drive Images

Remove Advanced Background from Google Drive Images

Purpose and structure

This folder contains the Remove Advanced Background from Google Drive Images workflow. Its executable nodes use editImage, googleDrive, googleDriveTrigger, httpRequest, if, merge, set, splitInBatches, splitOut. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Watch for new images

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Splitout/1943_Splitout_Editimage_Automation_Webhook.json MIT; preserve source notices.

More in Media & content