Files
2024-06-29 01:03:14 +02:00

45 lines
1.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ComfyUI IndustrialMagick
[ImageMagick](https://imagemagick.org/index.php) nodes for ComfyUI.
Adds nodes to call ImageMagick subprocesses from ComfyUI.
## Requirements
- ImageMagick \
Downloads: [ImageMagick 7](https://imagemagick.org/script/download.php)
- `magick` command in your CLI environment.
## Nodes
### IndustrialMagick
The main node. Lets you build a subprocess call token by token. \
Supports up to 50 tokens.
Expects an absolute image path as last parameter.
| Input | Type | Note |
| - | - | - |
|return_image| boolean | The node will read from file and return an image when set to true.
|param_count| integer (1-50) | Number of parameter fields to display. |
| param_x | string | Token parameter as used by python subprocess.run(). |
| Output | Type | Note |
| - | - | - |
|image| image or None | Returns an image if `return_image` is `True`.
|image_path| string | The path to the saved image. It’s actually the value of the last parameter |
|error | string | A string that says the subprocess failed. Used to determine completion status |
![](./readme_res/img_001.PNG)
![](./readme_res/img_002.PNG)
### IndustrialMagickImageIngest
A.K.A.: Industrial Magick Image *Loader*
A nodes that takes an image as input, saves as a temporary file and returns the temp file path to use in the `IndustrialMagick` node.
![](./readme_res/img_003.PNG)