n8n

How to Automate Google Drive Image Background Removal?

Turn new images in Google Drive into clean, ready to use product shots. The flow removes backgrounds, adds padding, and saves polished PNG files back into a folder you choose. It helps teams that prepare photos for stores, ads, and catalogs.

Here is how it works. An event in Google Drive starts the run when a new image appears. The file is downloaded, the image size is read, and configuration settings are combined. Based on your choice, the picture is routed to a fixed size path or an original size path. The image is sent to the Photoroom API with your API key to remove the background, set a transparent or solid color, and apply padding. The finished PNG is uploaded to your Drive with a clear file name. A batching step handles many images without extra clicks.

You will need a Google Drive connection and a Photoroom API key. Choose your input and output folders, set background color and padding, and decide if you want a fixed output size. Expect faster listings, cleaner images, and less manual editing. Great for online stores, marketplace listings, and social ad sets.

What are the key features?

  • Watches a Google Drive folder and reacts when new images appear
  • Downloads source files and uploads processed PNGs to your chosen Drive folder
  • Sends images to the Photoroom API to remove the background and set a color or transparency
  • Applies custom padding so products have space around the edges
  • Chooses between fixed output size or original size using a simple decision step
  • Reads image information to guide size logic and keep outputs consistent
  • Processes images in batches without manual clicks and uses clear file naming

What are the benefits?

  • Reduce manual editing from one hour to five minutes per batch
  • Standardize image size and padding for marketplace rules in one pass
  • Handle hundreds of photos per day with no extra effort
  • Connect Google Drive and Photoroom API in one continuous flow
  • Cut rework by 80 percent through consistent and clean outputs

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You will need accounts with Google Drive and Photoroom API. See the Tools Required section above for links to create accounts with these services.
  3. Open the Google Drive Trigger node. In the Credential to connect with field, click Create new credential and follow the on screen steps to connect your Google account. Select the Drive and the input folder that holds your images.
  4. Open the Google Drive Download node and choose the same Google Drive credential. Leave the file id expression as is so it uses the trigger file.
  5. Open the Set node named Config. Add or update fields for api key, bg color, padding, and OutputDriveFolder. Paste the output folder URL from Google Drive into OutputDriveFolder.
  6. In both HTTP Request nodes for background removal, confirm the x api key header uses the api key from the Config node. Make sure the imageFile field is set to the binary data input and the content type is multipart form data.
  7. Open the If node named check which output size method is used. Choose the rule that matches your plan. Use the fixed size path if you want exact width and height, or the other path for original size with padding and color.
  8. Open the Google Drive Upload nodes and select your Google Drive credential. Leave the folder field using the OutputDriveFolder expression so files go to the folder you set in Config.
  9. Run a test. Upload one image to the watched folder. Check the output folder for a new PNG with the background removed and your chosen color or transparency.
  10. If files do not appear, check Google Drive permissions, confirm the folder URL is correct, and verify the Photoroom API key is valid. Review node execution logs for any error messages.
  11. When the test looks good, enable the workflow. Adjust the Split In Batches node if you want to change how many images run per cycle.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Google Drive

Sign up

Drive API: $0 (no additional cost; quota-limited)

Photoroom API

Sign up

Basic plan: $20 / mo for 1,000 images ($0.02 per image)

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.