This n8n workflow automatically converts and enhances multiple photos into professional ID-style portraits using Gemini AI (Nano Banana). It processes images in batch from Google Drive, applies professional ID photo standards (proper framing, neutral background, professional attire), and outputs the enhanced photos back to Google Drive.
Input: Google Drive folder with photos
Output: Professional ID-style portraits in Google Drive output folder
The workflow uses a simple form interface where users provide Google Drive folder URLs and an optional custom prompt. It automatically fetches all images from the input folder, processes each through the Defapi API with Google's nano-banana model, monitors generation status, and uploads finished photos to the output folder. Perfect for HR departments, recruitment agencies, or anyone needing professional ID photos in bulk.
https://drive.google.com/drive/folders/xxxxxxx
)https://drive.google.com/drive/folders/yyyyyy
).jpg
, .jpeg
, .png
, .webp
)The workflow will:
The workflow consists of the following nodes:
The workflow uses this professional ID photo generation prompt by default:
Create a professional portrait suitable for ID documentation with proper spacing and composition.
Framing: Include the full head, complete shoulder area, and upper torso. Maintain generous margins around the subject without excessive cropping.
Outfit: Transform the existing attire into light business-casual clothing appropriate for the individual's demographics and modern style standards. Ensure the replacement garment appears natural, properly tailored, and complements the subject's overall presentation (such as professional shirt, refined blouse, contemporary blazer, or sophisticated layered separates).
Pose & Gaze: Position shoulders square to the camera, maintaining perfect frontal alignment. Direct the gaze straight ahead into the lens at identical eye height, avoiding any angular deviation in vertical or horizontal planes.
Expression: Display a professional neutral demeanor or subtle closed-lip smile that conveys confidence and authenticity.
Background: Utilize a solid, consistent light gray photographic background (color code: #d9d9d9) without any pattern, texture, or tonal variation.
Lighting & Quality: Apply balanced studio-quality illumination eliminating harsh contrast or reflective artifacts. Deliver maximum resolution imagery with precise focus and accurate natural skin color reproduction.
Based on the default prompt structure, here are specific customization points for different use cases:
Key Requirements: Most countries require white or light-colored backgrounds, neutral expression, no smile.
Prompt Modifications:
Plain white background (#ffffff)
or Light cream background (#f5f5f5)
Completely neutral expression, no smile, mouth closed, serious but not tense
Head size should be 70-80% of the frame height. Top of head to chin should be prominent
Replace with dark formal suit jacket and white collared shirt
or Navy blue blazer with light shirt
No glasses glare, ears must be visible, no hair covering the face
Key Requirements: Professional but approachable, company-appropriate attire.
Prompt Modifications:
#e6f2ff
(light blue), #f0f0f0
(light gray)Soft closed-mouth smile — confident and approachable
Dark business suit with tie for men, blazer with blouse for women
Smart casual polo shirt or button-down shirt without tie
Clean, professional casual clothing that reflects company culture
Upper chest visible with company badge area clear
Key Requirements: Friendly, youthful, appropriate for educational setting.
Prompt Modifications:
Light blue (#e3f2fd)
, Soft gray (#f5f5f5)
Friendly natural smile or pleasant neutral expression
Replace with clean casual clothing — collared shirt, polo, or neat sweater. No logos or graphics
Youthful, fresh appearance suitable for educational environment
Key Requirements: Strict standards, neutral expression, specific background colors.
Prompt Modifications:
White (#ffffff)
, Light gray (#d9d9d9)
, or Light blue (#e6f2ff)
Neutral expression, no smile, mouth closed, eyes fully open
Replace with everyday casual or business casual clothing — collared shirt or neat top
Head centered, face taking up 70-80% of frame, ears visible
No glasses (or non-reflective lenses), no headwear except religious purposes, natural hair
Key Requirements: Polished, confident, approachable.
Prompt Modifications:
Soft gray (#d9d9d9)
or Professional blue gradient (#e3f2fd to #bbdefb)
Confident, warm smile — professional yet approachable
Premium business suit, crisp white shirt, tie optional
Tailored blazer over collared shirt or elegant blouse
Smart business casual with modern, well-fitted clothing
Show head, full shoulders, and upper chest. Slightly more relaxed framing than strict ID photo
Soft professional lighting with slight catchlight in eyes to appear engaging
Key Requirements: Clean, trustworthy, professional medical appearance.
Prompt Modifications:
Clinical white (#ffffff)
or Soft medical blue (#e3f2fd)
Calm, reassuring expression with gentle smile
Replace with clean white lab coat over professional attire
or Medical scrubs in appropriate color (navy, ceil blue, or teal)
Hair neatly pulled back if long, clean professional appearance, no flashy jewelry
Key Requirements: Casual, recognizable, suitable for athletic environment.
Prompt Modifications:
Bright white (#ffffff)
or gym brand colorNatural friendly smile or neutral athletic expression
Replace with athletic wear — sports polo, performance t-shirt, or athletic jacket in solid colors
Casual athletic appearance, hair neat
Background Color Options:
#ffffff
(passport, visa, formal government IDs)#d9d9d9
(default, versatile for most purposes)#e6f2ff
(corporate, professional)#f5f5dc
(warm professional)#eceff1
(modern corporate)Expression Variations:
Clothing Formality Levels:
Framing Adjustments: