AI-Powered Background Remover for Google Drive Images (via Photoroom)
Integrates with:
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).
- Photoroom API Key. (You can get one from Photoroom API docs)
- Google Drive credentials configured in n8n.
- A designated Google Drive input folder to monitor for new images.
- A designated Google Drive output folder URL for processed images.
Setup Instructions
- Download the n8n workflow JSON file.
- Import the workflow into your n8n instance.
- Configure the 'Watch for new images' (Google Drive Trigger) node: Select your Google Drive credentials and specify the input folder to monitor.
- Update the 'Download Image' (Google Drive) node: Ensure your Google Drive credentials are selected.
- In the 'Config' node:
- Enter your Photoroom API Key in the
api-key
field. - Specify the
OutputDriveFolder
URL (where processed images will be saved). - Customize
bg_color
(e.g., 'white', 'transparent', or a HEX code),padding
(e.g., '5%'),keepInputSize
(true/false), andoutputSize
(e.g., '1600x1600' ifkeepInputSize
is false) as needed.
- Enter your Photoroom API Key in the
- 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.
- Review the 'Sticky Notes' within the workflow for additional guidance and customization options.
- Activate the workflow.
Want your own unique AI agent?
Talk to us - we know how to build custom AI agents for your specific needs.
Request a Consultation