Animated data flow diagram

AI-Powered Background Remover for Google Drive Images (via Photoroom)

Version: 1.0.0 | Last Updated: 2025-05-16

Integrates with:

Google Drive Photoroom

Overview

Streamline Your Image Processing with AI-Driven Background Removal

This n8n workflow automates the tedious task of image background removal by connecting Google Drive with Photoroom's powerful AI. It watches a specified Google Drive folder for new images, downloads them, sends them to the Photoroom API for precise background editing, and then uploads the polished images back to a designated output folder in your Google Drive. Tailor the results by customizing background colors (including transparent), padding, and output dimensions to perfectly match your branding and project requirements.

Key Features & Benefits

  • Automated Watch Folder: Monitors a Google Drive folder for new images, triggering the workflow instantly.
  • AI-Powered Precision: Leverages Photoroom's advanced AI for accurate and clean background removal.
  • Customizable Output: Control background color (solid colors like 'white', HEX codes, or 'transparent'), padding percentage, and output image size (keep original or set fixed dimensions).
  • Direct Google Drive Integration: Seamlessly downloads source images and uploads processed images back to your chosen Google Drive folders.
  • Batch Processing Ready: Efficiently handles multiple images, saving you significant manual effort.
  • Versatile Use Cases: Ideal for e-commerce product images, marketing visuals, social media content, and any scenario requiring clean image cutouts.

Use Cases

  • Automating background removal for new product photos uploaded to a Google Drive watch folder.
  • Creating transparent PNGs for website graphics or marketing materials in bulk.
  • Standardizing image backgrounds for e-commerce listings across multiple platforms.
  • Quickly preparing images with clean backgrounds for social media posts.

Prerequisites

  • An n8n instance (Cloud or self-hosted).\n- Photoroom API Key. (You can get one from Photoroom API docs)\n- Google Drive credentials configured in n8n.\n- A designated Google Drive input folder to monitor for new images.\n- A designated Google Drive output folder URL for processed images.

Setup Instructions

  1. Download the n8n workflow JSON file.\n2. Import the workflow into your n8n instance.\n3. Configure the 'Watch for new images' (Google Drive Trigger) node: Select your Google Drive credentials and specify the input folder to monitor.\n4. Update the 'Download Image' (Google Drive) node: Ensure your Google Drive credentials are selected.\n5. In the 'Config' node:\n * Enter your Photoroom API Key in the api-key field.\n * Specify the OutputDriveFolder URL (where processed images will be saved).\n * Customize bg_color (e.g., 'white', 'transparent', or a HEX code), padding (e.g., '5%'), keepInputSize (true/false), and outputSize (e.g., '1600x1600' if keepInputSize is false) as needed.\n6. Configure the 'Upload Picture to Google Drive' and 'Upload Picture to Google Drive1' nodes: Select your Google Drive credentials. The output folder is set dynamically from the 'Config' node.\n7. Review the 'Sticky Notes' within the workflow for additional guidance and customization options.\n8. Activate the workflow.

Tags:

AIImage ProcessingBackground RemovalGoogle DrivePhotoroomAutomationE-commerceMarketing AutomationSolopreneur Tool

Want your own unique AI agent?

Talk to us - we know how to build custom AI agents for your specific needs.

Schedule a Consultation