Animated data flow diagram

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

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

Integrates with:

Google Drive Photoroom API

Overview

Elevate Your Visuals with AI-Powered Background Removal\nThis n8n workflow operates as a dedicated AI agent, specialized in advanced image background removal. It diligently monitors a specified Google Drive folder for new image uploads. Once an image arrives, the agent downloads it, sends it to the Photoroom API (which leverages sophisticated AI for precise cutouts), and then uploads the professionally processed image (with options for custom background colors like transparent, padding, and defined output sizes) as a PNG to your chosen Google Drive destination. Its core ability is transforming raw images into clean, ready-to-use visuals.\n\n### Key Features & Benefits\n* Google Drive Integration: Seamlessly watches for new files in a source folder and saves results to a destination folder.\n* Photoroom AI Processing: Utilizes Photoroom's powerful AI for accurate and high-quality background removal.\n* Flexible Output Control:\n * Choose background colors (solid, transparent, hex codes, e.g., 'white', 'transparent', '#00FF00').\n * Add custom padding (percentage or pixel values, e.g., '5%', '10px').\n * Option to retain original image dimensions or resize to specific dimensions (e.g., '1600x1600').\n* Automated & Efficient: Eliminates manual editing time, boosting productivity for tasks like product photo preparation.\n* PNG Output: Saves images in PNG format, perfect for web use and preserving transparency.\n* Configurable: Easily set API keys, folder paths, and processing options through a central 'Config' node.

Use Cases

  • Automating background removal for new product photos in an e-commerce Google Drive.
  • Standardizing team headshots by applying a consistent background color or transparency.
  • Quickly preparing images with transparent backgrounds for marketing banners and social media posts.
  • Bulk processing user-generated content to fit a specific visual style.
  • Creating clean image assets for presentations or digital content without manual editing.

Prerequisites

  • An n8n instance (Cloud or self-hosted).\n- A Photoroom API Key. You can obtain one from the Photoroom API documentation.\n- Google Drive credentials configured in your n8n instance.\n- The ID or URL of the Google Drive folder to monitor for new images.\n- The full URL of the Google Drive folder where processed images will be saved.

Setup Instructions

  1. Download the n8n workflow JSON file.\n2. Import the workflow into your n8n instance.\n3. 'Watch for new images' Node (Google Drive Trigger):\n * Select your Google Drive credentials.\n * In the 'Options' tab, under 'Folder To Watch', specify the ID or URL of your input Google Drive folder.\n4. 'Download Image' Node (Google Drive):\n * Ensure your Google Drive credentials are selected.\n5. 'Config' Node:\n * Set api-key: Enter your Photoroom API Key.\n * Set OutputDriveFolder: Enter the full URL of your destination Google Drive folder (e.g., https://drive.google.com/drive/folders/YOUR_OUTPUT_FOLDER_ID).\n * Customize bg_color (e.g., 'white', 'transparent', '#RRGGBB').\n * Adjust padding (e.g., '5%', '10px').\n * Configure keepInputSize: true to maintain original image dimensions, false to use outputSize.\n * Define outputSize (e.g., '1600x1600') if keepInputSize is false. (Note: Photoroom may have specific supported output sizes or aspect ratios).\n6. 'Upload Picture to Google Drive' & 'Upload Picture to Google Drive1' Nodes:\n * Ensure your Google Drive credentials are selected.\n * Verify the 'Folder ID' parameter correctly references the configuration (e.g., ={{ $json.OutputDriveFolder }}).\n7. Activate the workflow. Upload images to your monitored Google Drive folder to see them processed automatically!

Tags:

AI-driven automationImage ProcessingBackground RemovalGoogle DrivePhotoroomE-commerceMarketing AutomationProductivityAutomation

Want your own unique AI agent?

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

Schedule a Consultation