Custom nodes to control ImageMagick subprocess from ComfyUI.
ComfyUI IndustrialMagick
ImageMagick nodes for ComfyUI.
Adds nodes to call ImageMagick subprocesses from ComfyUI.
Requirements
ImageMagick
Downloads: ImageMagick 7magick
command in your CLI environment.
V2 goodies
additional toggle "last_param_is_image_path", if false, the node will work with a temporary image, set to true if you provide your own path.
(that's also a breaking change as it changes widget order).
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.
InputTypeNotereturn_imagebooleanThe node will read from file and return an image when set to true.param_countinteger (1-50)Number of parameter fields to display.param_xstringToken parameter as used by python subprocess.run().
OutputTypeNoteimageimage or NoneReturns an image if return_image
is True
.image_pathstringThe path to the saved image. It’s actually the value of the last parametererrorstringA string that says the subprocess failed. Used to determine completion status
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.