Description
LinuxMaster Image Generator for ComfyUI allows you to seamlessly integrate a self-hosted ComfyUI server with your WordPress website, enabling users to generate images directly from the front-end or back-end using defined workflows.
🌟 Features
- Remote Generation: Send prompts and parameters from WordPress to your remote ComfyUI server.
- Workflow Integration: Utilizes a pre-defined ComfyUI workflow (configured via JSON) for consistent results.
- Shortcode Integration: Easily embed the image generation interface anywhere on your site using a simple shortcode.
⚙️ Setup and Configuration
- ComfyUI Server Setup: Ensure your ComfyUI server is running and accessible via a secure, public URL. You will need the API endpoint.
- Workflow Preparation:
- Create or load your desired workflow in the ComfyUI interface.
- The node intended for the main text prompt must be renamed to 1 (one) for the plugin to correctly inject the user’s positive prompt.
- Export the workflow as a JSON file for configuration within the plugin settings.
- Plugin Configuration: Access the plugin settings page to input:
- Your ComfyUI Server URL.
- The necessary API key (if applicable).
- The contents of your prepared workflow JSON.
💻 Usage
To display the image generation form on any post or page, simply use the following shortcode:
[COMFYUI_GENERATOR]
Users will input their desired prompt, and the request will be sent to your ComfyUI server based on the configured workflow.
⚠️ Plugin Technical Requirements
This plugin requires specific server configurations for the external ComfyUI server to function properly. This is not for a shared hosting environment.
- Server OS: UBUNTU 22.04 LTS (or newer) with FULL ROOT/SSH ACCESS is required for the self-hosted ComfyUI server.
- SSL Certificate Path:
sudo nano /etc/nginx/ssl/comfyui.crt(or equivalent steps). - Workflow Setup: RENAME POSITIVE PROMPT NODE TO
1in the ComfyUI API JSON. - Browser Requirement: Ensure your web browser is up-to-date and supports the necessary connection protocols for the plugin interface.
🤝 Credits
Special thanks to Jesse Karban for contributions to the development and architecture of this integration.
Installation
- Upload the
linuxmaster-image-generator-for-comfyuifolder to the/wp-content/plugins/directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Configure the plugin settings with your ComfyUI server details and prepared workflow JSON.
- Use the shortcode
[COMFYUI_GENERATOR]on any page or post.
FAQ
-
Q: Why do I need to rename the Positive Prompt node to ‘1’?
-
A: This is a requirement of the plugin’s API implementation to correctly identify and inject the user-provided prompt into your custom ComfyUI workflow JSON structure.
-
Q: Where can I find my ComfyUI workflow JSON?
-
A: In the ComfyUI web interface, right-click on the canvas and select “Save (API Format)”. This JSON file contains the blueprint for your generation.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“LinuxMaster Image Generator for ComfyUI” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “LinuxMaster Image Generator for ComfyUI” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
6.13
- Initial stable release to the WordPress Plugin Directory.
- Confirmed compatibility wit