n8n

How to Automate Google Drive Product Image Prep?

New images dropped in Google Drive are turned into clean product photos fast. Backgrounds are removed, padding is added, and a PNG copy is saved to your chosen folder. Great for ecommerce teams and ad production that need consistent images at scale.

An event in Google Drive starts the flow. The file is downloaded, the image size is read, and settings from a config step add background color, padding, and the output folder. A choice step decides between using the original size or a fixed output size. The image is sent to Photoroom through a secure API call, and the final PNG is uploaded back to Google Drive with a clear file name.

Setup needs a Google Drive connection and a Photoroom API key. Expect faster product page launches, quicker ad builds, and less time in manual editors. Use it for catalogs, marketplace listings, social ads, and pitch decks. Follow the steps to set folders, add the API key, choose size rules, and test with a sample upload.

What are the key features?

  • Watches a Google Drive folder for new images and starts on each new file
  • Downloads the image and reads its size for smart sizing choices
  • Lets you set background color, padding, and output folder in a config step
  • Switches between original size and a fixed output size with a simple rule
  • Removes the background using the Photoroom API and adds optional padding
  • Saves the final PNG to a selected Google Drive folder with a clear name
  • Processes images in batches so many files can run safely

What are the benefits?

  • Reduce manual editing from 10 minutes per image to about 1 minute
  • Automate up to 90 percent of image prep tasks
  • Keep a consistent look with a single background color every time
  • Handle large drops of files with batch processing and event based runs
  • Connect Google Drive and Photoroom with no manual upload or download

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Google Drive and Photoroom. See the Tools Required section above for links to create accounts with these services.
  3. Create two Google Drive folders called Input and Output. Copy the full URL of the Output folder.
  4. Open the Google Drive trigger node and choose the Input folder. If asked for credentials, double click the node, choose Create new credential, then follow the on screen steps to connect your Google account.
  5. Connect Google Drive on all Google Drive nodes. Double click each node, select Credential to connect with, and pick the same Google Drive credential so uploads and downloads use the same account.
  6. Get your Photoroom API key from the Photoroom site under the API section. In n8n, open the node named Config and paste the key into the api key field.
  7. In the Config node, set bg color, padding percent, and paste the Output folder URL into OutputDriveFolder. Use plain color names or a hex code for the background color.
  8. Decide on size rules. If you want a fixed output size, open the decision node and confirm the field it checks. Set width and height values in the related config fields if they exist.
  9. Save and activate the workflow. Upload a sample image to the Input folder. Wait a moment and check the Output folder for a PNG file with the new name that begins with BG Removed.
  10. If you see no output, open the n8n execution log. Check for an API key error, wrong folder URL, or an unsupported file type. Fix the issue and try again.
  11. Once working, drop a larger set of images into the Input folder and watch them process in batches without manual work.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Google Drive

Sign up

Drive API: $0 (no additional cost; quota-limited)

Photoroom

Sign up

Basic plan: $20 / mo for 1,000 images ($0.02 per image)

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.