← All N8N workflows
AI & researchChain LLMEdit ImageGoogle DriveLM Chat Google GeminiManual Trigger

photos to list and download google drive and resize edit image

Configured with Chain LLM, Edit Image, Google Drive, LM Chat Google Gemini, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TriggerWhen clicking ‘Testworkflow’Manual TriggerTransformStructured OutputParserOutput Parser StructuredTransformPhoto URLsEdit FieldsTransformPhotos To ListSplit OutFiles / mediaDownload PhotosGoogle DriveFiles / mediaResize For AIEdit ImageAI & modelsPassport PhotoValidatorChain LLMAI & modelsGoogle Gemini ChatModelLM Chat Google Gemini

Node categories in this workflow

  • Trigger
  • Transform
  • Files / media
  • AI & models

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
When clicking ‘Test workflow’TriggerManual TriggerSee node parameters
Structured Output ParserTransformOutput Parser StructuredSee node parameters
Photo URLsTransformEdit FieldsSee node parameters
Photos To ListTransformSplit OutSee node parameters
Download PhotosFiles / mediaGoogle Drivedownload
Resize For AIFiles / mediaEdit Imageresize
Passport Photo ValidatorAI & modelsChain LLMSee node parameters
Google Gemini Chat ModelAI & modelsLM Chat Google GeminiSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • googleDriveOAuth2Api
  • googlePalmApi

Workflow notes

1. Import Photos To Validate

1. Import Photos To Validate

Read more about using Google Drive

In this demonstration, we'll import 5 different portraits to test our AI vision model. For convenience, we'll use Google Drive but feel free to swap this out for other sources such as other storage or by using webhooks.

2. Verify Passport Photo Validity Using AI Vision Model

2. Verify Passport Photo Validity Using AI Vision Model

Learn more about Basic LLM Chain

Verifying if a photo is suitable for a passport photo is a great use-case for AI vision and to automate the process is an equally great use-case for using n8n. Here's we've pasted in the UK governments guidelines copied from gov.uk and have asked the AI to validate the incoming photos following those rules. A structured output parser is used to simplify the AI response which can be used to update a database or backend of your choosing.

Try It Out!

Try It Out!

This workflow takes a portrait and verifies if it makes for a valid passport photo. It achieves this by using an AI vision model following the UK government guidance.

OpenAI's vision model was found to perform well for understanding photographs and so is recommended for this type of workflow. However, any capable vision model should work.

Need Help?

Join the Discord or ask in the Forum!

photos to list and download google drive and resize edit image

photos to list and download google drive and resize edit image

Purpose and structure

This folder contains the photos to list and download google drive and resize edit image workflow. Its executable nodes use chainLlm, editImage, googleDrive, lmChatGoogleGemini, manualTrigger, outputParserStructured, set, splitOut. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

When clicking ‘Test workflow’

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Splitout/0579_Splitout_Editimage_Update_Triggered.json MIT; preserve source notices.

More in AI & research