๐ Remove backgrounds and upscale product photos in bulk with Apify and Google Sheets
โก 0 views ยท ๐ File Management
Description
Quick overview
This workflow reads product image URLs from Google Sheets, removes their backgrounds and upscales the cutouts in bulk using Apify actors, then writes the processed image URL, dimensions, and status back to the same sheet.
How it works
- Starts manually and reads rows from a Google Sheets spreadsheet containing an
image_urlcolumn. - Deduplicates the image URLs and sends them as a single batch to Apifyโs Background Remover API actor to generate transparent PNG cutouts.
- Maps background-removal results back to the original sheet row numbers and collects only successful cutout URLs for further processing.
- If any cutouts succeeded, sends the cutout URLs to Apifyโs Image Upscaler API actor to upscale them 2ร and return final image URLs and dimensions.
- Combines upscale results and any failures, then updates the matching rows in Google Sheets with
result_url,width,height,status, anderror.
Setup
- Create a Google Sheet with columns
image_url,result_url,width,height,status, anderror, and populateimage_urlwith publicly accessible image URLs. - Add Google Sheets credentials in n8n and select the target spreadsheet and sheet in both the read and update steps.
- Add an Apify API token credential and connect it to both Apify actor steps (Background Remover Batch and Image Upscaler Batch).
- (Optional) Adjust the upscaling
scalevalue (for example, change from2to4) and the Apify maximum charge limits to match your quality and cost requirements.
Requirements
- An Apify account (pay per image, no subscription to the actors) and a Google account.
Customization
- Replace Google Sheets with Airtable, Google Drive or a webhook; remove the upscaling step if you only need cutouts.
Additional info
Failed images are marked in the sheet with the reason and are never charged. Each Apify node has a maximum cost per run of $5 that you can raise.
๐ Nodes Used
Google Sheets
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File