A rough implementation of various ImageMagick functionalities in ComfyUI.
Report Bug
·
Request Feature
Table of Contents
This is a way to implement ImageMagick functionality in ComfyUI, which is generally PIL (pillow) based. I'm not sure the best way to handle this, as batch images make it a lot more complex, but the general idea will be two nodes to translate the IMAGE type, a torch.tensor of shape [batch, height, width, channels], or [1, 600, 800, 3] for a single 800x600 image, into/from a wand Image object.
THIS IS CHANGING. THIS WON'T WORK SO EACH NODE WORKS NATIVELY WITH IMAGE INPUT/OUTPUT.
The way to install this is the same as other custom nodes. Navigate to ComfyUI and clone this repo using the command:
git clone https://github.com/houdinii/comfy-magick.git
Restart the ComfyUI server.
Right now, this is using wand version 0.6.13 which uses ImageMagick bindings for version 7.
This does require ImageMagick to be on the PATH (for Windows). I'm not entirely sure how this would be set up on other OSes, however there are instructions in the wand documentation found at: https://docs.wand-py.org/en/0.6.12/guide/install.html
- Special Effects:
- AddNoise
- BlueShift
- Charcoal
- Colorize
- FX
- Transforms
- CropByAspectRatio
- Licenses / Readme
- First set of nodes, like CropByAspectRatio to get the ball rolling
- Adding features to this list
- And more here....
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License (For now. I want permissive licensing). See LICENSE.txt
for more information.
Houdinii - @harry-houdinii
Project Link: https://github.com/houdinii/comfy-magick
ImageMagick is Apache 2.0 license https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwilo46Ll-OEAxX4ENAFHYeABc8QFnoECAcQAQ&url=https%3A%2F%2Fimagemagick.org%2Fscript%2Flicense.php&usg=AOvVaw0MLxNNicF-KnYPZozkNf2g&opi=89978449
wand is license MIT 3.0, documentation included. custom license included
some functionality for loading into PIL form is from another package, EllangoK/ComfyUI-post-processing-nodes I don't know the license offhand, but I think it's MIT 3.0. Double check.
Readme template from: othneildrew/Best-README-Template under MIT 3.0
I don't know what license to use, but it's going to be very permissive
Todo:
- Licenses
- This Readme