Nodes/GlitchNodes/DataBend | GlitchNodes
ComfyUI Node

DataBend | GlitchNodes

The all-in-one databend glitch kit

By pxl-pshr·Created 2 years ago·Updated 3 months ago· 73
DataBend | GlitchNodes
  • images
  • image
slice_directionhorizontal
slice_min_size5
slice_max_size40
slice_variability0.5
channel_shift_moderandom
color_intensity0.7
rgb_shift_separatefalse
preserve_bright_areas0.5
glitch_typesall
pattern_frequency3
chaos_amount0.5
seed0
wave_distortion0.0
compression_artifacts0.0
pixel_sorting0.0

DataBend is the kitchen-sink node of GlitchNodes: slice shifting, channel splitting, hue shifts, wave distortion, compression artifacts, and pixel sorting all in one place. If you want one node that makes an image look "glitched" in the broadest possible sense - think the noise-and-shimmer aesthetic from VHS intros and broken video-game captures - this is the fastest route. It's not the deepest tool in the pack, but it's the most convenient.

The mechanism is straightforward glitch-by-slice. It cuts the image into horizontal and/or vertical bands (controlled by slice_min_size, slice_max_size, and slice_variability), then displaces those slices, and layers in color-channel manipulation. On top of that, glitch_types picks the slice behavior - shift, repeat, mirror, noise, or all - and pattern_frequency / chaos_amount decide how many passes and how violent they are. The three distortion sliders (wave_distortion, compression_artifacts, pixel_sorting) are the seasoning you add on top.

The inputs that matter

  • slice_direction - horizontal, vertical, or both. Horizontal slices are the classic "broken analog" look; vertical gives you that sideways tear.
  • glitch_types - all (the default) is the most chaotic; repeat and mirror give more recognizable datamosh-style echoes.
  • channel_shift_mode - random, rgb_split, or hue_shift. rgb_split with rgb_shift_separate on gives you clean chromatic-aberration ghosting; hue_shift runs the hue around the wheel.
  • chaos_amount (0–1) - the master intensity for slice displacement. 0.5 is a good starting point.
  • color_intensity (0–1) and preserve_bright_areas (0–1) - the second one is a genuinely useful safety valve: raise it to keep highlights from turning into muddy garbage during color shifting.
  • seed - required, and it's your reproducibility knob; same seed, same bend.

Output is image (IMAGE) → PreviewImage/SaveImage, and it handles batches. Input is called images in the schema, matching its batch-first personality.

Installing it

Same as every GlitchNodes node - one pack install covers all 19:

cd ComfyUI/custom_nodes
git clone https://github.com/pxl-pshr/GlitchNodes
# restart ComfyUI

or ComfyUI Manager → Install Custom Nodes → search "GlitchNodes". Dependencies: numpy, torch, Pillow, opencv-python, scipy. No models.

Gotchas

Because DataBend stacks so many effects, it's easy to turn a portrait into an unreadable mess in one click. The README's framing applies here more than anywhere: "highly experimental and may break or even error." Practical tip: raise pattern_frequency slowly, keep chaos_amount at 0.3–0.5, and use preserve_bright_areas to keep faces readable. And when you land on a look you like, that seed is your friend - it's the difference between "reproducible" and "never seen again."

CategoryGlitchNodes

Inputs (16)

NameTypeDefaultDescription
imagesIMAGE
slice_directionCOMBOhorizontal3 options: horizontal, vertical, both
slice_min_sizeINT51–50
slice_max_sizeINT405–200
slice_variabilityFLOAT0.50–1
channel_shift_modeCOMBOrandom3 options: random, rgb_split, hue_shift
color_intensityFLOAT0.70–1
rgb_shift_separateBOOLEANfalse
preserve_bright_areasFLOAT0.50–1
glitch_typesCOMBOall5 options: shift, repeat, mirror, noise, all
pattern_frequencyINT31–10
chaos_amountFLOAT0.50–1
seedINT00–18446744073709550000
wave_distortionFLOAT0.00–1
compression_artifactsFLOAT0.00–1
pixel_sortingFLOAT0.00–1

Outputs (1)

NameTypeDescription
imageIMAGE