Skip to content

The iTools are some quality of life nodes, like read a possible prompt used to create an image, add text overlay on image, save a prompt to file as a new line, read prompts from a multiline file.

Notifications You must be signed in to change notification settings

jakerdy/ComfyUI-iTools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iTools

The iTools are some quality of life nodes, like read a possible prompt used to create an image, save a prompt to file as a new line, read prompts from a multiline file. and the newly amazing prompt styler node that will help you quickly populate your {prompt} using a template name stored in an easily editable yaml file.

iTools Welcome

Nodes:

# iTools Image Loader Plus: is an enhancement of the original ComfyUI ImageLoader node. It attempts to return the possible prompt used to create an image. If the prompt isn't found directly, this node will search for the prompt within the following supported nodes in the workflow:

  • CLIPTextEncodeSDXL
  • CLIPTextEncode
  • easy positive
  • ShowText|pysssss
  • Eff. Loader SDXL
  • SDXLPromptStyler

If your prompt is within any of these nodes, you will be able to retrieve it. The ShowText|pysssss node is a convenient addition that you can integrate it into any workflow to make sure it will be retrieved by iTools ImageLoaderPlus.

iTools ImageLoaderPlus

# iTools Prompt Styler 🖌️: Helps you quickly populate your {prompt} using a template name stored in a yaml file. I chose yaml over json because it will be easier for the user to read, edit it or to add his own templates, it will load all yaml files in the styles folder, so you may add your unlimited files there and easily add your own templates. iTools Prompt Styler

# iTools Prompt Styler Extra 🖌️🖌️: Like iTools Prompt Styler, but you can mix up to 4 styles from up to 4 yaml files. check examples folder for basic workflow for this node. iTools Prompt Styler Extra

Example: here are some examples you just use "cute cat" as a prompt and let iTools Prompt Styler Extra do the magic of mixing 4 different styles togather. iTools Prompt Styler Extra

# iTools Prompt Loader: will try to load a prompt from a txt file, you need to provide a full path to a .txt file or try to use the default prompt.txt one is the examples folder, the node will return the prompt at given index (line number) note that count start from zero.

# iTools Prompt Saver: will append the given prompt as a new line to the given file, provide a full path to a .txt file or try to use the default prompt.txt one.

Recording.2024-08-15.013607.mp4

# iTools Add Text Overlay: will add an overlay bottom bar to show a given text, you may change the background color of the overlay bar and the font size.

Example 1: add text overlay iTools Add Text Overlay Example 2: add full prompt iTools Add Text Overlay Example 3: change background color and font size iTools Add Text Overlay Edit: iTools Add Text Overlay has been updated, and now you can add the text over or under the image

Example: Add text if overlay off: iTools Add Text Overlay

# iTools Load Images: will return list of images from a given directory with a given limit, for example if the limit is 4 it will return first 4 images in that directory.it will also return the list of these images names. iTools Add Text Overlay

# iTools Grid Filler: Arranging a set of images into specified rows and columns, applying optional spacing and background color

# iTools Line Loader: Will return a line from a multi line text at given index, help ypu make your own list of words or prompts and load them one by one or randomized. iTools Line Loader

# iTools Text Replacer: A text replacer tool that might also be useful Example1: with line loader tool you may quickly paste your prompts in lines and load them one by one or randomized, then you combine it with text replacer to get prompt variations. The total count of lines will be returned, allowing it to be used as a batch counter. iTools Text Replacer

Example2: Another example useful for randomization: with two lists of just 5 elements each, you can get up to 25 possible outputs iTools Text Replacer

Example3: With three lists you get up to 125 possible outputs iTools Text Replacer

Wait for more...

Support me on PayPal

Donate

About

The iTools are some quality of life nodes, like read a possible prompt used to create an image, add text overlay on image, save a prompt to file as a new line, read prompts from a multiline file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 86.1%
  • JavaScript 13.9%