ComfyUI Extension: GraftingRayman

Authored by GraftingRayman

Created

Updated

52 stars

Image Manipulation Nodes

Custom Nodes (0)

    README

    Welcome to my page. I create nodes that I need to make my life easier, most of the stuff I do is based on Image Generation and Manipulation. If I find something lacking I try to create something that helps me or shortens the time required to complete the task at hand. This is by no means an extensive list, more to follow though.

    If you would like to make a donation to my efforts use the QR code

    QR code

    Installation:

    Install using ComfyUI Manager or manually install in your custom_nodes directory with the following command:

    "git clone https://github.com/GraftingRayman/ComfyUI_GraftingRayman"

    Make sure to install Clip

    For comfyui portable run the following command in your comyfui folder

    ".\python_embeded\python.exe -m pip install git+https://github.com/openai/CLIP.git"

    For system python run the following command

    "pip install git+https://github.com/openai/CLIP.git"

    Without this the nodes will fail to be imported

    Overlays:

    GR Text Overlay

    GR Onomatopoeia

    Prompts:

    GR Prompt Selector

    GR Prompt Selector Multi

    GR Prompt Hub

    GR Prompt Generator

    Image Utils:

    GR Image Resizer

    GR Image Size

    GR Stack Image

    GR Image Resize Methods

    GR Image Details

    GR Image Paste

    GR Image Paste With Mask

    GR Background Remover REMBG

    Mask Utils:

    GR Mask Create

    GR Multi Mask Create

    GR Mask Resize

    GR Image/Depth Mask

    GR Mask Create Random

    Image Tiling

    GR Flip Tile Random Red Ring

    GR Flip Tile Random Inverted

    GR Tile Image

    GR Tile and Border Image Random Flip

    Video

    GR Counter

    GR Scroller

    GR Pan Or Zoom

    If you use these, follow my YouTube channel where I create ComfyUI workflows from scratch

    Youtube Badge

    Hope this stuff is helpful

    GR Prompt Generator

    If like me, your prompts are very bland and can't seem to get the right amount of details in, this node is for you. This node generates the positive prompt for scenes. You can add your own details to be appended to the prompt as well. Short text can be used to describe the image, and this can be then expanded automatically. A vast array of the type of image can be selected, images can also be replicated using the seed.

    image image image

    There is a new Extended version of the Prompt Generator with over 10 Quintillion+ combinations for prompts. You can choose from more than 120 different subjects to generate prompts

    GR Pan Or Zoom

    Workflow in workflow folder.

    The GR Pan Or Zoom node, takes an image of your choice and using the depth map can zoom or pan the image using 6 different depth focusing methods.

    image

    With out Depth

    AnimateDiff_00136

    With Depth

    AnimateDiff_00137

    GR Text Overlay

    This node creates a text overlay, this can be single or multi line. Placement includes left, right, center, middle, top, bottom. Justification can be manually set. Lots of default colours selectable from the list. All your system TTF and OTF fonts available dynamically. Line spacing as well as letter spacing can be controlled in steps of 0.01. Text without stroke thickness can be used as a mask. A second mask includes the stroke thickness Added a background box that can be used to highlight the text, the edge styles for the box can be selected as well as its opacity

    image

    GR Onomatopoeia

    Creates random Onomatopoeia or uses the letters provided. Still a bit buggy, currently placing it left or right does not work correctly.

    image

    image

    GR Prompt Selector

    Can choose from 6 prompts

    Always prompt is always on

    Negative prompt included

    grpromptselector

    GR Prompt Selector Multi

    All the features of Prompt Selector, this time you can use all 6 prompt styles at the same time

    image

    GR Prompt Hub

    This is a simple prompt combiner, will take 6 positives and 6 negatives and combine them

    image

    GR Image Resizer

    Resizes image by height, size, divisible and scale

    Credit to simeonovich

    image

    GR Mask Create

    This node creates a single mask that you can use

    image

    GR Multi Mask Create

    If you need multiple mask in one node, you can use this. This node creates upto 8 equal size masks.

    image

    GR Mask Resize

    When you need to resize your mask image to fit your latent image

    image

    GR Image Depth Mask

    image

    image image image image

    GR Image Size

    A node with preselected image sizes or custom, outputs height and width, can also be used for empty latent image via the latent output

    image image

    Added a dimensions input to the node, this takes the dimensions from the image and passes that for the height/width. A seed feature has also been added with 15 digit random seeds, this will reduce number of nodes on display

    image

    GR Tile Image

    A node to add a border in pixels and tile the image

    image

    GR Mask Create Random

    Creates a random mask of your chosen size, useful to set a latent noise mask at random

    image

    GR Tile and Border Image Random Flip

    This node takes an image and tiles the image into defined columns and rows, but before outputting it flips one of the tiles randomly

    image

    GR Stack Image

    This node takes two images as input and stacks one on top of the other, both images need to be of the same dimensions. Added a new input to select horizontal or vertical stacking.

    image

    GR Image Resize Methods

    This node is a slightly improved Resize node that loads and displays the image (Similar to LoadImage), you can resize the image using different Interpolation methods.

    image

    GR Image Details

    I took the standard Image Preview node and updated it, now you can see the preview with additional details like Filename, File Size, Height, Width, Type of Image etc You can also save the file with the details with the save node

    image image

    GR Flip Tile Random Red Ring

    This node takes an image input and creates a tile of the required size, it then flips a random tile and puts a red ring around it

    image

    If a second image is provided (this iamge needs to be resized before joining to the dimenions of the main tile + 2 x border size, this will then use this second image as the flipped random tile and put a red ring around it

    image

    For both types, the first output will give you the image with the randomly flipped image, the second output will give you the same image but with the red ring around the flipped tile

    GR Flip Tile Random Inverted

    This node takes an image, creates a tile of the required size with a randomly flipped tile, the first output shows the full tile with the randomly flipped tile, while the second output shows the randomly flipped tile inverted.

    image

    GR Checkered Board

    Creates a checkered board, outputs an image as well as a mask. You can choose from a myriad of colours, borders for individual boxes and the whole board.

    image

    GR Image Paste

    This node takes the second image and pastes it over the first. Opacity can be set for the second image. Both images need to be of the same dimensions, this can be resized using GR Image Resize node.

    image

    GR Image Paste With Mask

    This node, takes a background image (Dimensions of background image are used to rescale the overlay and mask if different), an overlay image and a mask. The overlay image is pasted over the background image with guidance from the mask. The opacity can be manually set along with manual positioning of the overlay image as well as the mask. If you want to see where the mask is being placed you can enable an outline of the mask with configurable outline thickness, colour and opacity along with outline placement. Various blend options are available for the blending of the masked image. 4 Outputs are provied, 1st output sends the overlayed image, 2nd output sends the same overlayed image with the mask inverted, 3rd output sends the outline only and the fourth output sends the dimensions of the background image in text format.

    image

    image

    GR Counter

    This node creates a countdown or count up timer video, you can choose the font and size you want, also includes an outline feature. The node outputs the frames which can be further processed if required. Video is saved in the location specified in the node which is of type MP4. Can move the timer across the screen or resize the timer from start to finish.

    image

    image

    AnimateDiff_00063

    GR Background Remover REMBG

    This node is an updated version of other REMBG nodes, includes all available REMBG models to choose from

    8 Different models to choose from

    image

    image

    Use the general use model for all types of images

    image

    Use the anime model for anime images

    image

    GR Scroller

    A node that creates a scrolling text on a background colour of your choice. You can select the path it saves the video or individual frames.

    image

    Lots of different styles to select from

    image