Adobe CEP Extension & CDP Browser Automation
Lazy-Image
Native AI Image Generation Inside Adobe After Effects & Premiere Pro
- GitHub stars: 1
- Downloads: 10
- v2.6 · 2 months ago
Try it yourself
Write a prompt in any language, generate, and watch the picture land on the timeline.
A native Adobe CEP extension for After Effects and Premiere Pro enabling zero-cost AI image generation directly onto active timelines via Chrome DevTools Protocol (CDP) browser automation—requiring no API keys, no browser extensions, and running an invisible on-demand browser session.
The challenge
Motion designers, video editors, and visual effects artists routinely need conceptual backgrounds, storyboards, textures, and b-roll graphic assets during post-production. The standard industry workflow forces creators into a frustrating loop: leaving the editor, juggling browser tabs in Midjourney or ChatGPT, waiting for renders, downloading files to disk, navigating local folders, importing footage into the project bin, and manually positioning clips onto the timeline. This repetitive context-switching cripples creative momentum. Furthermore, commercial generative APIs demand recurring per-token subscriptions and billing infrastructure that individual editors and small studios find prohibitive.
Technical & Architectural Challenges:
1. Eliminating Browser Extension Dependencies: Version 1.x relied on a local loopback HTTP server and a companion Manifest V3 Chrome extension, introducing multi-step installation friction. The primary architectural objective was creating a standalone bridge capable of directly driving the user's native Windows default Chromium browser (Chrome, Edge, Brave, Vivaldi) without requiring any installed browser extensions.
2. Dual Host Timeline Automation (After Effects & Premiere Pro): After Effects and Premiere Pro operate on fundamentally different ExtendScript object models. While AE requires instantiating footage items into active composition layers precisely at comp.time, Premiere Pro demands intelligent sequence-level track evaluation—placing clips onto the first unoccupied video track above existing footage at the playhead without overwriting any active timeline clips, and dynamically generating tracks when needed.
3. Non-Intrusive Invisible Execution & Session Isolation: Running browser automation silently in the background without stealing keyboard focus from active timeline editing, while strictly isolating the ChatGPT session inside a dedicated profile (%APPDATA%LazyImage) to ensure the user's personal browser data, bookmarks, logins, and extensions remain untouched.
The solution
1. Invisible CDP Browser Engine (Chrome DevTools Protocol): Replaced legacy browser extensions with native Chrome DevTools Protocol (CDP) WebSocket communication. When a generation is triggered, an on-demand Chromium browser process (Chrome, Edge, Brave, or Vivaldi) launches in an invisible window, navigates to the active session, types the prompt and aspect ratio, captures the generated high-resolution asset stream via Base64, and cleanly shuts down the browser process. Zero background memory footprint when idle.
2. Isolated User Profile & One-Time Authentication: Maintains a dedicated profile in %APPDATA%LazyImage (e.g., ChromeProfile or EdgeProfile), guaranteeing that the user's everyday browsing history, passwords, and extensions remain untouched. Users log in once through a normal browser popup that closes itself upon verification; the authenticated state is shared across both After Effects and Premiere Pro.
3. Cross-Host Timeline Placement (ExtendScript):
- After Effects: Reads active composition dimensions and playhead timestamp (comp.time), automatically creating a new visual layer and neatly organizing project bin footage inside a dedicated ChatGptImages folder.
- Premiere Pro: Scans active sequence video tracks under the current playhead, evaluates track bounds to locate the first unoccupied video track above existing footage (or dynamically creates a new track), and drops the clip without destructive overwrites.
4. Automated Project Directory Asset Management: Automatically resolves the parent directory of currently loaded .aep or .prproj projects, creating a local chatgptimages directory adjacent to project files. Monitors asset integrity and surfaces 'Image removed' notifications if an asset is deleted on disk.
5. Estimated Progress Feedback & Cancellation: Features live progress percentage tracking during generation cycles and an instant Cancel button allowing editors to abort long-running prompts without freezing the host software.
6. Native Quick Action Utilities: Built-in 'Copy Image' utility pipes the full-resolution graphic straight to the Windows OS clipboard via a lightweight native bridge, complemented by an 'Open Folder' shortcut that reveals the asset in Windows Explorer.
7. Universal Unicode & Aspect Ratio Presets: Full UTF-8 multi-language support (Bengali, English, Arabic, Spanish, etc.) and instant aspect ratio toggles (1:1, 16:9, 9:16, 4:5) alongside custom width/height inputs.
8. 1-Click Zero-Config Windows Installer: Streamlined install.bat utility configures Adobe CEP registry debug flags across CC 2019–2026 and establishes an instant symlink into %APPDATA%AdobeCEPextensionscom.gimage.aftereffects.
Highlights
- Unified Adobe CEP panel supporting both Adobe After Effects and Adobe Premiere Pro (CC 2019-2026)
- Direct Chrome DevTools Protocol (CDP) WebSocket automation—eliminates browser extensions entirely
- Zero API cost or token subscriptions—operates directly through active ChatGPT Free/Plus/Pro accounts
- Intelligent timeline placement: AE playhead layer insertion and Premiere Pro non-destructive track placement
- Invisible on-demand execution: hidden browser launches per task, exits immediately, and never steals focus
- Isolated user profile in %APPDATA%LazyImage safeguarding personal browser logins, history, and bookmarks
- Smart project file discovery: automated chatgptimages disk folders and structured ChatGptImages project bins
- Live progress percentage feedback with instant task cancellation support
- Native quick actions: one-click "Copy Image" to clipboard and "Open Folder" in Windows Explorer
- One-click aspect ratio presets (1:1, 16:9, 9:16, 4:5) plus custom dimension controls
- Full Unicode UTF-8 multi-language support (Bengali, English, and beyond)
- 1-Click automated Windows installer configuring registry debug keys and extensions symlink
