Skip to content
NEWError doctor and Watchtower: failed n8n runs explained in plain words, and emailed to you. See what is new

Library / Image, Video & Audio

Image, Video & Audio

Remove Image Backgrounds from Airtable to Google Drive

When you run it, the workflow reads image records from Airtable, removes backgrounds with APImage AI and uploads the results to Google Drive.

What it does

### 📃 4. Full Workflow Documentation ### 🟢 Remove Background (Manual Trigger) Purpose: Starts the workflow manually when you want to process images. - Click this node to begin the background removal process - No configuration needed - just acts as the starting point - Triggers the entire workflow chain 🔧 Customization Options: - Replace with Schedule Trigger for automatic processing (daily/weekly) - Replace with Webhook Trigger to start via API calls - Replace with File Trigger to process when new files are added --- ### 📋 Get a Record (Airtable) Purpose: Retrieves media files from your Airtable "Creatives Library" database. - Connects to the "Media Files" table in your Airtable base - Fetches records containing image thumbnails that need background removal - Uses your configured Airtable credentials to access the data - Returns all matching records with their thumbnail URLs and metadata 🔧 Customization Options: - Change Data Source: Replace with Google Sheets, Notion, or any database/storage node - Add Filters: Use "Filter By Formula" to process only specific records - Different Tables: Change to any table with image URLs - Batch Processing: Set "Maximum number of records" to limit processing --- ### ⚙️ Code (JavaScript Processing) Purpose: Processes the Airtable records and prepares thumbnail data for background removal. - Extracts thumbnail URLs from each Airtable record - Chooses the best quality thumbnail (large > full > original) - Creates clean filenames by removing special characters - Adds processing metadata and timestamps - Outputs one item per thumbnail ready for processing 🔧 Customization Options: - File Naming: Modify the cleanFileName logic for custom naming patterns - Quality Selection: Change thumbnail quality preference order - Add Validation: Include image format/size checks before processing - Metadata Fields: Extract additional fields from your Airtable records - Error Handling: Add try/catch blocks for robust processing #### 📋 Adapting to Different Airtable Databases Current Code Structure (for reference): javascript // Current field mappings fileName: record.fields['File Name'] mediaType: record.fields['Media Type'] uploadDate: record.fields['Upload Date'] fileSize: record.fields['File Size'] thumbnailUrl: record.fields.Thumbnail[0].url 🔄 Common Customizations for Different Databases: 1. Different Image Field Names: javascript

The steps

  1. Get a record
  2. Code
  3. Split Out
  4. Download
  5. Upload file
  6. APImage API
  7. Remove Background

Similar automations