Skip to content

A rough implementation of various ImageMagick functionalities in ComfyUI.

License

Notifications You must be signed in to change notification settings

houdinii/comfy-magick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


comfy-magick

A rough implementation of various ImageMagick functionalities in ComfyUI.

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

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.

(back to top)

Getting Started

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.

Prerequisites

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

Node List

  • Special Effects:
    • AddNoise
    • BlueShift
    • Charcoal
    • Colorize
    • FX
  • Transforms
    • CropByAspectRatio

Roadmap

  • 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).

(back to top)

Contributing

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License (For now. I want permissive licensing). See LICENSE.txt for more information.

(back to top)

Contact

Houdinii - @harry-houdinii

Project Link: https://github.com/houdinii/comfy-magick

(back to top)

Acknowledgments

(back to top)


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

About

A rough implementation of various ImageMagick functionalities in ComfyUI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages