Auto-Photoshop-StableDiffusion-Plugin
RepositoryFreeA user-friendly plug-in that makes it easy to generate stable diffusion images inside Photoshop using either Automatic or ComfyUI as a backend.
Capabilities12 decomposed
multi-backend stable diffusion image generation with session orchestration
Medium confidenceManages end-to-end image generation workflows by maintaining a central Generation Session object that coordinates parameters (prompts, dimensions, sampling steps), selection context from Photoshop, and communication with pluggable backends (Automatic1111, ComfyUI, Stable Horde). The session persists generation state and history across multiple requests, enabling iterative refinement without re-specifying parameters. Implements a backend abstraction layer that normalizes API differences across implementations, allowing users to switch backends without UI changes.
Implements a UXP-based plugin architecture that maintains a stateful Generation Session object bridging Photoshop's document context with multiple Stable Diffusion backends through a normalized API abstraction layer, enabling seamless backend switching without UI reconfiguration
Tighter Photoshop integration than web-based Stable Diffusion UIs (no tab-switching) and more flexible backend support than Photoshop's native AI features (supports self-hosted Automatic1111, ComfyUI, and Stable Horde)
photoshop layer and selection-aware image inpainting and outpainting
Medium confidenceExtracts active selection boundaries and layer information from Photoshop documents using the UXP API, converts selected regions to base64-encoded image data, and sends them to the backend as inpainting masks or reference images. Supports both inpainting (regenerating masked regions) and outpainting (extending canvas beyond original boundaries) by reading selection geometry and layer pixel data. After generation, automatically places results back into Photoshop as new layers, preserving layer hierarchy and blend modes.
Leverages Photoshop's native UXP API to read live selection geometry and layer pixel data, converting them to inpainting masks without requiring external image files or clipboard operations, enabling seamless inpainting workflows within the Photoshop canvas
More integrated than standalone inpainting tools (no export/import cycle) and preserves Photoshop layer structure better than web-based inpainting UIs that return flat images
stable diffusion model and sampler selection with dynamic backend discovery
Medium confidenceQueries the configured backend to dynamically discover available models and samplers, populating UI dropdowns with live options from the backend. Allows users to select which Stable Diffusion model to use (e.g., sd-v1-5, sd-xl, custom fine-tuned models) and which sampler/scheduler to apply (e.g., DPM++, Euler, Heun). Caches discovered models and samplers to avoid repeated API calls, with manual refresh option. Supports model switching without restarting the plugin, and automatically validates that selected model is available on the backend before generation.
Implements dynamic model and sampler discovery by querying backend APIs at runtime, populating UI dropdowns with live options and caching results to avoid repeated API calls, enabling seamless model switching without manual configuration
More discoverable than manual model configuration (dropdown vs text input) and more flexible than hardcoded model lists, though requires backend API support for model enumeration
seed management and reproducible generation with history tracking
Medium confidenceManages random seed values for generation, allowing users to specify fixed seeds for reproducible results or use random seeds for variation. Tracks generation history including seed, prompt, parameters, and output image, enabling users to reproduce previous generations by selecting from history. Implements seed validation (ensuring seeds are within valid range) and provides UI controls for seed increment (generating variations with sequential seeds). Stores generation history in memory during session with optional export to JSON for external analysis.
Implements in-memory generation history tracking with seed-based reproducibility, allowing users to re-run previous generations by selecting from history and automatically re-using the same seed and parameters without manual re-entry
More convenient than manual seed tracking (dropdown vs manual entry) and enables faster iteration than random seed generation, though history is ephemeral and requires manual export for persistence
controlnet-guided image generation with preset management
Medium confidenceIntegrates ControlNet conditioning by accepting control images (edge maps, depth maps, pose skeletons, etc.) and control strength parameters, forwarding them to backends that support ControlNet (Automatic1111 with ControlNet extension, ComfyUI with ControlNet nodes). Includes a preset system (stored in controlnet_preset.js) that defines common ControlNet configurations (Canny edges, depth estimation, OpenPose, etc.), allowing users to select presets from the UI rather than manually configuring control types. Automatically extracts control images from Photoshop selections or accepts external image uploads.
Implements a preset-based ControlNet configuration system (controlnet_preset.js) that abstracts backend-specific ControlNet node/extension differences, allowing users to select high-level control types (edges, depth, pose) from a dropdown without understanding underlying backend API differences
Simpler ControlNet workflow than ComfyUI's node-based interface (presets vs manual node wiring) and more discoverable than Automatic1111's text-based ControlNet API (UI dropdown vs parameter strings)
segment anything model (sam) integration for automatic mask generation
Medium confidenceIntegrates SAM (Segment Anything Model) to automatically generate inpainting masks from user clicks or bounding boxes on the Photoshop canvas. When enabled, SAM processes the current image and generates precise segmentation masks for selected objects, which are then used as inpainting masks for subsequent generation. The plugin communicates with a backend SAM service (typically running as a separate Python service) to perform segmentation, then converts SAM output masks to Photoshop selections or inpainting masks.
Bridges Photoshop's canvas interaction (click-based object selection) with SAM's segmentation capabilities through a separate backend service, enabling one-click object masking without manual selection tool usage
Faster object masking than manual Photoshop selection tools and more accurate than color-range selection for complex boundaries, though requires additional SAM service infrastructure vs built-in Photoshop selection tools
image-to-image transformation with style transfer and variation generation
Medium confidenceAccepts uploaded or Photoshop-sourced images as input and performs image-to-image (img2img) transformations using a denoising strength parameter (0.0-1.0) that controls how much the output diverges from the input. Lower strength values preserve input image structure while applying style changes; higher values allow more creative variation. Supports style transfer (applying artistic styles while maintaining composition), variation generation (creating similar images with different details), and guided image editing (regenerating specific aspects while preserving others). Communicates with backend img2img endpoints that support denoising strength parameter.
Integrates img2img transformation directly into Photoshop's workflow by accepting Photoshop selections or layers as input images, eliminating export/import cycles and allowing iterative style exploration within the native editing environment
More seamless than external style transfer tools (no export/import) and offers finer control over style strength via denoising parameter than Photoshop's native neural filters
one-button prompt generation from image context
Medium confidenceAnalyzes the current Photoshop image or selection and automatically generates descriptive text prompts using a vision model or heuristic analysis. This enables users to generate variations or transformations without manually writing detailed prompts. The feature extracts visual features (colors, objects, composition) from the image and constructs prompts that preserve these characteristics while allowing style or content modifications. Integrates with external vision APIs (e.g., CLIP interrogation, image captioning services) or uses local heuristics to generate prompts.
Implements one-click prompt generation from Photoshop images by integrating with vision models (CLIP interrogation or image captioning), reducing prompt engineering friction for non-technical users while maintaining image-to-image generation workflows
Faster than manual prompt writing and more contextually relevant than generic prompt templates, though less precise than hand-crafted prompts for specific artistic directions
multi-backend configuration and switching with persistent settings
Medium confidenceProvides a settings management system that allows users to configure multiple Stable Diffusion backends (Automatic1111, ComfyUI, Stable Horde) with their respective API endpoints, authentication tokens, and model preferences. Settings are persisted across plugin sessions (stored in browser local storage or plugin-specific storage). Users can switch between backends from the UI without reconfiguring generation parameters, and the plugin automatically adapts API calls to each backend's specific format (Automatic1111 REST API vs ComfyUI WebSocket API vs Stable Horde HTTP API).
Implements a backend abstraction layer that normalizes API differences across Automatic1111 (REST), ComfyUI (WebSocket), and Stable Horde (HTTP) into a unified interface, allowing seamless backend switching without UI changes or parameter reconfiguration
More flexible than single-backend plugins (supports 3+ backends) and faster backend switching than managing separate plugin instances for each backend
photoshop layer creation and image placement with metadata preservation
Medium confidenceAutomatically creates new Photoshop layers for generated images and places them into the active document with configurable layer naming, blending modes, and opacity. Preserves generation metadata (prompt, seed, parameters) as layer notes or custom properties, enabling traceability of generated content. Supports layer grouping (organizing generated images into folders) and automatic layer naming based on generation parameters or timestamps. Uses Photoshop UXP API to manipulate layer hierarchy and properties without requiring external scripts.
Leverages Photoshop UXP API to create layers and embed generation metadata (prompt, seed, parameters) as layer notes, enabling full traceability of AI-generated content within Photoshop's native layer hierarchy without external scripts
More integrated than manual layer creation (no copy-paste) and preserves metadata better than external image files, though layer notes are less structured than dedicated metadata databases
real-time backend connectivity status monitoring and error handling
Medium confidenceContinuously monitors connectivity to the configured Stable Diffusion backend by periodically sending health-check requests (e.g., /api/sd-models endpoint for Automatic1111). Displays connection status in the UI (connected/disconnected/error) and provides detailed error messages when generation fails due to backend issues (network timeout, API error, model not loaded, etc.). Implements exponential backoff retry logic for transient failures and graceful degradation when backend is unavailable (disables generation UI, shows helpful error messages).
Implements backend-agnostic health monitoring by abstracting health check endpoints across Automatic1111, ComfyUI, and Stable Horde, with exponential backoff retry logic and detailed error categorization to help users diagnose backend issues
More proactive than silent failures (shows status before generation attempt) and more informative than generic error messages by categorizing failures by type (network vs API vs backend overload)
batch image processing with parameter variation and grid generation
Medium confidenceEnables generation of multiple images in a single request by varying generation parameters (prompts, seeds, sampling steps, guidance scales) across a batch. Supports grid-based parameter exploration (e.g., generate 4x4 grid with different prompts and seeds) and automatically organizes results into Photoshop layer groups. Implements queue-based batch processing that sends multiple generation requests to the backend sequentially, displaying progress and allowing cancellation. Results are automatically composited into a grid image or placed as separate layers for comparison.
Implements queue-based batch processing with automatic Photoshop layer group organization, allowing users to explore parameter variations (seeds, prompts, guidance scales) and compare results side-by-side within Photoshop's native layer hierarchy
More integrated than external batch processing scripts (results organized in Photoshop layers) and faster than manual one-at-a-time generation, though sequential processing is slower than parallel backends
Capabilities are decomposed by AI analysis. Each maps to specific user intents and improves with match feedback.
Related Artifactssharing capabilities
Artifacts that share capabilities with Auto-Photoshop-StableDiffusion-Plugin, ranked by overlap. Discovered automatically through the match graph.
Hugging Face Diffusion Models Course
Python materials for the online course on diffusion models by [@huggingface](https://github.com/huggingface).
ComfyUI-Workflows-ZHO
我的 ComfyUI 工作流合集 | My ComfyUI workflows collection
DreamStudio
DreamStudio is an easy-to-use interface for creating images using the Stable Diffusion image generation model.
IOPaint
Image inpainting tool powered by SOTA AI Model. Remove any unwanted object, defect, people from your pictures or erase and replace(powered by stable diffusion) any thing on your pictures.
diffusers-image-outpaint
diffusers-image-outpaint — AI demo on HuggingFace
BrushNet
[ECCV 2024] The official implementation of paper "BrushNet: A Plug-and-Play Image Inpainting Model with Decomposed Dual-Branch Diffusion"
Best For
- ✓Digital artists and designers using Photoshop as primary creative tool
- ✓Teams running self-hosted Stable Diffusion backends (Automatic1111 or ComfyUI)
- ✓Users wanting to avoid context-switching between Photoshop and separate AI generation tools
- ✓Photoshop power users comfortable with selection tools and layer workflows
- ✓Designers needing non-destructive AI-assisted editing within their existing Photoshop projects
- ✓Artists using inpainting for content removal, extension, or region-specific style transfer
- ✓Users with multiple models installed on their backend and wanting to switch between them
- ✓Teams experimenting with different model architectures (v1.5 vs XL vs custom fine-tunes)
Known Limitations
- ⚠Requires external Stable Diffusion backend running locally or remotely — no built-in model inference
- ⚠Session state is ephemeral and lost on plugin reload — no persistent generation history across sessions
- ⚠Backend communication is synchronous, blocking UI during generation (no streaming progress updates)
- ⚠Limited to single-image generation per request — batch generation not supported
- ⚠Selection extraction is limited to rectangular or simple polygonal regions — complex feathered selections may lose precision
- ⚠Layer placement always creates new layers rather than modifying existing ones — requires manual layer merging
Requirements
Input / Output
UnfragileRank
UnfragileRank is computed from adoption signals, documentation quality, ecosystem connectivity, match graph feedback, and freshness. No artifact can pay for a higher rank.
Repository Details
Last commit: Apr 22, 2024
About
A user-friendly plug-in that makes it easy to generate stable diffusion images inside Photoshop using either Automatic or ComfyUI as a backend.
Categories
Alternatives to Auto-Photoshop-StableDiffusion-Plugin
Are you the builder of Auto-Photoshop-StableDiffusion-Plugin?
Claim this artifact to get a verified badge, access match analytics, see which intents users search for, and manage your listing.
Get the weekly brief
New tools, rising stars, and what's actually worth your time. No spam.
Data Sources
Looking for something else?
Search →