Automate Google Drive Image Background Removal & Resize with Photoroom API
detail.loadingPreview
Automatically remove backgrounds from Google Drive images, add padding, and resize using the Photoroom API. Uploads processed images back to Drive.
🚀Ready to Deploy This Workflow?
🚀 Run Without Servers
Too complicated to set up? Run this workflow instantly on AIWord.
Run on AIWord Cloud ☁️About This Workflow
How it works
This workflow automates the process of cleaning up images stored in Google Drive. It begins by triggering on new image file creations in a specified Google Drive folder (Watch for new images node).
Once a new image is detected, it's downloaded (Download Image node). The workflow then sets up configuration parameters like desired background color, padding, output size, and Google Drive output folder using the Config node. An Get Image Size node retrieves the dimensions of the downloaded image, which is then passed to a Split Out node to separate image dimensions for conditional logic.
A crucial if node (check which output size method is used) determines whether to use a fixed output size or the original input size. Based on this, the remove background fixed size or remove background HTTP Request nodes are executed, leveraging the Photoroom API to remove the image background. These nodes send the image data, API key, and other parameters to the Photoroom API.
Finally, the processed images are uploaded back to a designated Google Drive folder using the Upload Picture to Google Drive and Upload Picture to Google Drive1 nodes. The Merge and loop all over your images nodes help manage and process multiple images in batches. Sticky notes provide helpful context and setup instructions.
Key Features
- Automate background removal for images in Google Drive.
- Customizable background color (including transparent).
- Option to add padding to images.
- Control output image dimensions (fixed or original size).
- Automatically upload processed images back to Google Drive.
- Triggered by new image uploads in a specific Google Drive folder.
- Leverages the Photoroom API for advanced image editing.
How To Use
- Set up Google Drive Credentials: Ensure your Google Drive OAuth2 credentials are set up and selected in the
Watch for new images,Download Image, andUpload Picture to Google Drivenodes. - Configure Google Drive Trigger: In the
Watch for new imagesnode, select the specific Google Drive folder you want to monitor for new image uploads. - Obtain Photoroom API Key: Get an API key from Photoroom and paste it into the
api-keyfield in theConfignode. - Configure Output Drive Folder: In the
Confignode, paste the URL of the Google Drive folder where you want the processed images to be saved. - Customize Image Settings: In the
Confignode:- Set your desired
bg_color(e.g., 'white', 'transparent', '#000000'). - Adjust
paddingas needed (e.g., '5%', '10px'). - Choose between
keepInputSize: true(original size) orkeepInputSize: false(specifyoutputSizelike '1600x1600').
- Set your desired
- Activate Workflow: Once configured, activate the workflow.
Apps Used
Workflow JSON
{
"id": "dc642a4d-061a-4e69-a57c-c158d22f4b74",
"name": "Automate Google Drive Image Background Removal & Resize with Photoroom API",
"nodes": 0,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
🚀 Run Without Servers
Use our managed AI Automation Cloud. No DevOps, no errors. Start for free.
- Anti-detect Browser
- Managed Proxies
- 24/7 Uptime
Get This Workflow
ID: dc642a4d-061a...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Related Integrations
- Google Sheets + Schedule Trigger(394 workflows)
- Google Sheets + Split Out(277 workflows)
- Google Sheets + Slack(268 workflows)
- Gmail + Google Sheets(245 workflows)
- Google Drive + Google Sheets(203 workflows)
- Form Trigger + Google Sheets(163 workflows)
- Google Drive + Google Drive Trigger(135 workflows)
- Google Drive + Split Out(134 workflows)
- Google Sheets + Telegram(118 workflows)
- Execute Workflow Trigger + Google Sheets(101 workflows)
Related Workflows
Discover more workflows you might like
Automated n8n Credential Restoration from Google Drive
This n8n workflow automates the process of restoring your valuable n8n credentials from a Google Drive backup. It intelligently retrieves your `n8n_backup_credentials.json` file, checks for existing credentials, and then seamlessly imports the missing ones, ensuring your automations can run without interruption.
Automated n8n Workflow GitHub Backup & Sync
Automatically back up and synchronize your n8n workflows to a GitHub repository, ensuring version control, easy collaboration, and reliable recovery. This subworkflow intelligently compares existing files with new versions and updates or creates them on GitHub as needed.
One-Click Rundeck Job Automation
This workflow provides a simple, manual trigger to instantly execute a predefined job within your Rundeck environment. Perfect for on-demand operations, it streamlines the initiation of critical IT tasks with a single click.
Robust Concurrency Control for n8n Workflows with Redis
Prevent simultaneous execution of critical n8n workflows or tasks using a centralized, Redis-backed locking mechanism. This reusable utility workflow ensures data integrity and resource management by allowing other workflows to acquire, check, and release locks.
Automated Jira Ticket Triage and Enhancement
Streamline your Jira workflow with intelligent automation. This solution automatically fetches open tickets, enhances them with AI-powered labeling, prioritization, and summary rewriting, and updates your Jira instance.
Automate Claude API Calls with Batch Processing
Streamline your AI interactions with Claude by leveraging n8n for efficient batch prompt submission. This workflow automates sending multiple prompts simultaneously and retrieving their results, saving you time and resources.