GlitchNodes is a collection of image processing nodes designed for ComfyUI that specializes in creating glitch art and retro effects.
These are highly experimental and may break or even error. You are more than welcome to contribute to the repo.
:::!~!!!!!:.
.xUHWH!! !!?M88WHX:.
.X*#M@$!! !X!M$$$$$$WWx:.
:!!!!!!?H! :!$!$$$$$$$$$$8X:
!!~ ~:~!! :~!$!#$$$$$$$$$$8X:
:!~::!H!< ~.U$X!?R$$$$$$$$MM!
~!~!!!!~~ .:XW$$$U!!?$$$$$$RMM!
!:~~~ .:!M"T#$$$$WX??#MRRMMM!
~?WuxiW*` `"#$$$$8!!!!??!!!
:X- M$$$$ `"T#$T~!8$WUXU~
:%` ~#$$$m: ~!~ ?$$$$$$
:!`.- ~T$$$$8xx. .xWW- ~""##*"
..... -~~:<` ! ~?T#$$@@W@*?$$ /`
W$@@M!!! .!~~ !! .:XUW$W!~ `"~: :
#"~~`.:x%`!! !H: !WM$$$$Ti.: .!WUn+!`
:::~:!!`:X~ .: ?H.!u "$$$B$$$!W:U!T$$M~
.~~ :X@!.-~ ?@WTWo("*$$$W$TH$! `
Wi.~!X$?!-~ : ?$$$B$Wu("**$RM!
$R@i.~~ ! : ~$$$$$B$$en:``
?MXT@Wx.~ : ~"##*$$$$M~
▒█▀▀█ ▀▄▒▄▀ ▒█░░░ ▒█▀▀█ ▒█▀▀▀█ ▒█░▒█ ▒█▀▀█
▒█▄▄█ ░▒█░░ ▒█░░░ ▒█▄▄█ ░▀▀▀▄▄ ▒█▀▀█ ▒█▄▄▀
▒█░░░ ▄▀▒▀▄ ▒█▄▄█ ▒█░░░ ▒█▄▄▄█ ▒█░▒█ ▒█░▒█
~~~~~~~~~ G L I T C H N O D E S ~~~~~~~~~
Pixel8Bit - Retro pixelation with period-accurate palettes and dithering
Corruptor - Controlled corruption via wavelet transformations
DataBend - Slice manipulation, color shifting, and distortion patterns
DitherMe - Comprehensive dithering with 30+ algorithms
OrderedDithering - Precise ordered dithering with animation support
GlitchIT - JPEG corruption artifacts at the byte level
Interference - Shader-like interference via iterative sorting
LineScreen - Halftone-like line pattern effects
LuminousFlow - Flowing luminous strands of light
PixelFloat - Gravity-affected motion via optical flow
PixelRedistribution - Pixel redistribution by pattern and color
Rekked - 12 glitch/artistic effect modes
Scanz - Scan lines, wave distortions, and CRT artifacts
TvGlitch - Analog TV signal distortions (YIQ color space)
VaporWave - Vaporwave aesthetics with color bands
VHSonAcid - VHS artifacts with psychedelic color distortion
VideoModulation - CRT monitor simulation with dot patterns
A comprehensive retro pixelation node that converts images to authentic 8-bit style with period-accurate palettes and dithering.
Supports both single images and batched images (N,H,W,C) with progress tracking.
Input: Single image or batch
Parameters
Parameter
Description
pixel_size
Pixelation factor (1-256). Higher values create larger pixels. Default: 4
quant_mode
Color quantization method: "Fixed Palette" or "Adaptive K-Means"
gamma
Gamma correction (0.1-3.0). Adjusts brightness curve before processing. Default: 1.0
Parameter
Description
fixed_palette
Historical palette to use (see available palettes below)
custom_palette_hex
Custom colors in hex format (comma-separated). Used when palette is "Custom"
k_colors
Number of colors for K-Means mode (2-256). Default: 8
Parameter
Description
dithering
Dithering algorithm: "None", "Ordered", or "Floyd-Steinberg"
ordered_size
Matrix size for ordered dithering: 2, 4, or 8. Default: 4
posterize_bits
Bit depth reduction (1-8). Reduces color precision before quantization. Default: 8
Available Palettes
Classic Console Palettes
PICO-8 : Fantasy console 16-color palette
GameBoy : Original DMG-01 4-shade green palette
NES : Nintendo Entertainment System color subset
C64 : Commodore 64 VIC-II 16 colors
Atari2600-Subset : Common 16-color subset from Atari 2600
MSX : TMS9918 palette from MSX computers
Computer Palettes
ZX Spectrum : Sinclair ZX Spectrum 15 colors (7 base + bright variants)
Apple II : Composite artifact colors
EGA-16 : IBM Enhanced Graphics Adapter 16 colors
VGA-256 : Standard 256-color VGA palette (6x6x6 RGB cube + grayscale)
Amiga-Workbench : Popular Workbench/demoscene colors
CGA-Default : IBM Color Graphics Adapter (cyan/magenta/white)
CGA-Alternate : CGA alternate palette (green/red/yellow)
Custom
Define your own palette using hex colors: #FF0000,#00FF00,#0000FF
Quantization & Dithering Details
Analyzes the image to create an optimal palette:
Content-Aware : Colors chosen based on image content
Customizable : Control exact number of colors (2-256)
Flexible : Works with any image while maintaining retro feel
None - Direct color quantization, clean sharp transitions
Ordered (Bayer Matrix) - Mathematical dither patterns (2x2, 4x4, 8x8)
Floyd-Steinberg - Error diffusion for organic, natural-looking transitions
A node that applies controlled corruption effects to images using wavelet transformations.
Input: Single image or batch
Parameters
Parameter
Description
scaling_factor_in
Controls initial corruption intensity (0-1000). Higher values create more subtle effects, lower values create more extreme effects. Default: 80.0
scaling_factor_out
Controls final corruption intensity (0-1000). Higher values amplify the effect, lower values reduce it. Default: 80.0
noise_strength
Amount of random noise added (0-100). Higher values create more random distortions. Default: 10.0
color_space
Color space for applying effects: RGB, HSV, LAB, or YUV. Each creates different corruption patterns
channels_combined
When True, processes all color channels together. When False, processes each channel independently
Advanced Wavelet Controls
Parameter
Description
wavelet_floor_mode
Method used for coefficient quantization: "regular", "absolute", or "threshold". Default: "regular"
wavelet_padding
Padding mode for signal extension: "edge", "constant", "reflect", or "symmetric". Default: "edge"
wavelet_threshold
Threshold value used when wavelet_floor_mode is "threshold". Default: 0.5
Parameter
Description
noise_distribution
Type of noise to add: "normal" (Gaussian), "uniform" (even), or "salt_pepper" (random extreme values). Default: "normal"
Advanced glitch art node that combines multiple effects including slice manipulation, color shifting, and various distortion patterns.
Input: Single image or batch
Parameters
Parameter
Description
slice_direction
Direction of glitch slices: "horizontal", "vertical", or "both". Default: horizontal
slice_min_size
Minimum size of glitch slices (1-50). Default: 5
slice_max_size
Maximum size of glitch slices (5-200). Default: 40
slice_variability
Controls frequency of slice effects (0-1). Higher values create more slices. Default: 0.5
Parameter
Description
channel_shift_mode
Type of color shifting: "random", "rgb_split", or "hue_shift". Default: random
color_intensity
Strength of color manipulation effects (0-1). Default: 0.7
rgb_shift_separate
When true, applies RGB shifting to channels independently. Default: False
preserve_bright_areas
Protects bright areas from color manipulation (0-1). Default: 0.5
Parameter
Description
glitch_types
Type of glitch effect: "shift", "repeat", "mirror", "noise", or "all". Default: all
pattern_frequency
Number of glitch patterns to apply (1-10). Default: 3
chaos_amount
Intensity of glitch patterns (0-1). Default: 0.5
seed
Random seed for reproducible results. -1 for random. Default: -1
Parameter
Description
wave_distortion
Applies wave-like distortion effect (0-1). Default: 0.0
compression_artifacts
Simulates compression artifacts (0-1). Default: 0.0
pixel_sorting
Applies pixel sorting effect (0-1). Default: 0.0
Parameter
Description
control_after_generate
Post-processing control: "randomize" or "none". Default: none
A comprehensive dithering node that implements various dithering algorithms for creating retro and artistic effects.
Supports both single images and batched images (N,H,W,C) with temporal coherence for animations.
Input: Single image or batch
Parameters
Parameter
Description
algorithm
Dithering algorithm to use. See algorithms below. Default: floyd_steinberg
color_mode
Output color scheme: "monochrome", "duotone", "tritone", or "indexed"
effect_size
Scale factor for dithering patterns (0.1-10.0). Affects pattern density and size. Default: 1.0
threshold
Base threshold for dithering decisions (0-1). Default: 0.5
Parameter
Description
sharpen
Sharpening intensity (0-2.0). Applied before dithering. Default: 0.0
blur
Blur intensity (0-2.0). Applied before dithering. Default: 0.0
noise
Random noise amount (0-1.0). Adds texture before dithering. Default: 0.0
temporal_coherence
Frame blending for animations (0-1.0). Reduces flickering in sequences. Default: 0.0
Color Controls (Optional)
Parameter
Description
shadow_color
Color for dark areas (hex format). Default: #000000
midtone_color
Color for middle tones (hex format). Default: #808080
highlight_color
Color for bright areas (hex format). Default: #FFFFFF
shadow_brightness
Brightness adjustment for shadows (-1 to 1). Default: 0.0
midtone_brightness
Brightness adjustment for midtones (-1 to 1). Default: 0.5
highlight_brightness
Brightness adjustment for highlights (-1 to 1). Default: 1.0
palette_colors
Number of colors for indexed mode (2-256). Default: 2
Available Algorithms
Error Diffusion - floyd_steinberg, jarvis_judice_ninke, stucki, atkinson, burkes, sierra, sierra_2row, sierra_lite
Ordered Dithering - ordered_2x2, ordered_4x4, ordered_8x8, bayer_2x2, bayer_4x4, bayer_8x8
Clustered/Dispersed - clustered_dot_4x4, clustered_dot_8x8, dispersed_dot_4x4, dispersed_dot_8x8
Special Effects - halftone_dots, halftone_lines, modulation, wave_interference, contour_lines, line_modulation
Noise & Spatial - blue_noise, white_noise, random, threshold
Geometric - hilbert_curve, spiral, zigzag, checkerboard
Diffusion Variants - diffusion_horizontal, diffusion_vertical, diffusion_diagonal, void_and_cluster
A specialized ordered dithering node that creates precise, controllable dithering patterns with animation support.
Supports both single images and batched images (N,H,W,C) with temporal effects.
Input: Single image or batch
Parameters
Parameter
Description
dither_type
Type of dithering: "Standard", "Artistic", or "Animated"
color_mode
Output format: "Color" (RGB) or "Grayscale"
num_colors
Number of quantization levels (2-256). Default: 2
pattern_size
Dither matrix size: "2x2", "4x4", or "8x8"
scale
Pattern scaling factor (1-8). Enlarges the base pattern. Default: 1
Parameter
Description
pattern_contrast
Pattern intensity (0.1-2.0). Higher values create stronger patterns. Default: 1.0
invert
Inverts colors and patterns when enabled. Default: False
Animation Controls (Animated Mode)
Parameter
Description
frames
Number of animation frames to generate (1-300). Default: 60
speed
Base animation speed (0-1.0). Controls pattern shifting. Default: 0.0
wave_speed
Wave modulation speed (0.1-2.0). Controls pattern flow. Default: 1.0
Dithering Types & Matrices
Standard - Traditional Bayer matrices for precise, mathematical dithering. Best for technical applications and retro computer graphics.
Artistic - Enhanced patterns with dot, line, and diagonal variations. Best for creative effects and stylized artwork.
Animated - Temporal dithering with pattern offset animation and wave modulation. Best for video effects and dynamic backgrounds.
Bayer Matrices:
2x2: [0 2 / 3 1] | 4x4: [0 8 2 10 / 12 4 14 6 / 3 11 1 9 / 15 7 13 5] | 8x8: Full 64-element optimized pattern.
A node that creates JPEG corruption artifacts by manipulating image data at the byte level.
Input: Single image or batch
Parameters
Parameter
Description
seed
Random seed for reproducible results. Controls the random selection of bytes to corrupt. Default: 0
min_amount
Minimum number of bytes to corrupt (0-100). Default: 1
max_amount
Maximum number of bytes to corrupt (1-100). Default: 10
Advanced shader-like interference effect node that creates complex patterns through iterative sorting and color manipulation.
Input: Single image or batch
Parameters
Parameter
Description
horizontal_iterations
Number of horizontal sorting passes (0-50). Higher values create more horizontal interference. Default: 10
vertical_iterations
Number of vertical sorting passes (0-50). Higher values create more vertical interference. Default: 4
shift_amount
Pixel shift distance per iteration (-10 to 10). Negative values shift left/up, positive values shift right/down. Default: -1
Parameter
Description
color_shift
Intensity of color transformation (0-1). Higher values create more pronounced color effects. Default: 0.5
color_mode
Color effect type: "monochrome", "rainbow", "duotone", or "invert". Each mode creates distinct color patterns
preserve_brightness
When enabled, maintains original image brightness levels while applying color effects. Default: True
An image processing node that creates halftone-like effects using configurable line patterns.
Input: Single image or batch
Parameters
Parameter
Description
line_spacing
Distance between lines (2-20). Lower values create denser patterns. Default: 4
angle
Rotation angle of the line pattern (-90 to 90). Default: -45.0
threshold
Brightness threshold for line application (0.1-0.9). Controls pattern density. Default: 0.5
contrast_boost
Enhances image contrast before applying pattern (1.0-2.0). Default: 1.2
invert
When enabled, inverts the pattern colors. Default: False
Parameter
Description
line_color_r
Red component of line color (0-1). Default: 0.0
line_color_g
Green component of line color (0-1). Default: 0.0
line_color_b
Blue component of line color (0-1). Default: 0.0
Parameter
Description
bg_color_r
Red component of background color (0-1). Default: 1.0
bg_color_g
Green component of background color (0-1). Default: 1.0
bg_color_b
Blue component of background color (0-1). Default: 1.0
A node that transforms images into flowing luminous strands, creating an ethereal effect of light threads that follow the image's features.
Input: Single image or batch
Parameters
Parameter
Description
line_spacing
Distance between luminous lines (2-50). Lower values create denser patterns. Default: 8
line_thickness
Width of each luminous line (1-5). Default: 1
flow_intensity
Strength of the flow effect (0.1-5.0). Higher values create more dramatic displacements. Default: 2.0
smoothing
Amount of line smoothing (0-5). Higher values create smoother curves. Default: 1.0
Parameter
Description
glow_intensity
Brightness of the luminous effect (0.1-20.0). Default: 12.0
glow_spread
Size of the glow effect (0-12). Higher values create wider glows. Default: 7
darkness
Background darkness level (0-1). Lower values create darker backgrounds. Default: 0.01
Parameter
Description
vibrancy
Color saturation intensity (0.1-15.0). Higher values create more vivid colors. Default: 8.0
contrast
Overall contrast enhancement (0.1-10.0). Higher values create stronger distinction between light and dark areas. Default: 4.0
An advanced animation processor that creates fluid, gravity-affected motion between frames using optical flow analysis.
Input: Image batch (processes transitions between consecutive frames)
Parameters
Parameter
Description
gravity_strength
Strength of downward motion (-50 to 0). More negative values create stronger gravity effect. Default: -10.0
motion_threshold
Threshold for motion detection (0.1-5.0). Higher values require more motion to trigger effects. Default: 0.5
interpolation_factor
Smoothness of motion transitions (0-1). Higher values create smoother transitions. Default: 0.5
Parameter
Description
block_size
Size of pixel blocks for motion analysis (4-64). Default: 4
auto_block_size
When enabled, automatically calculates optimal block size. Default: False
min_blocks
Minimum number of blocks when using auto sizing (16-64). Default: 32
max_blocks
Maximum number of blocks when using auto sizing (64-256). Default: 128
Parameter
Description
flow_scale
Scale factor for optical flow pyramid (0.1-0.9). Default: 0.25
flow_levels
Number of pyramid levels for flow analysis (1-8). Default: 5
flow_iterations
Number of iterations per pyramid level (1-10). Default: 3
A node that creates unique visual effects by redistributing pixels based on various patterns and color relationships.
Input: Image batch
Parameters
Parameter
Description
distance_mode
Origin point for redistribution: "center", "top", "left", or "random". Default: center
pattern
Distribution pattern: "outward", "spiral", "waves", or "diagonal". Default: outward
strength
Intensity of the redistribution effect (0.1-2.0). Default: 1.0
Parameter
Description
color_size
Number of color levels per channel (2-256). Higher values create smoother gradients. Default: 64
order
Channel processing order as comma-separated RGB indices (e.g., "0,1,2"). Default: "0,1,2"
invert
When enabled, inverts the color output. Default: False
Parameter
Description
contrast
Adjusts image contrast before processing (0.1-4.0). Default: 1.0
brightness
Adjusts image brightness before processing (-1.0 to 1.0). Default: 0.0
A versatile image processing node that applies various glitch and artistic effects through different processing modes.
Original Repo: https://github.com/Datamosh-js/datamosh
Input: Single image or batch
Parameters
Parameter
Description
mode
Effect mode to apply (see available modes below)
Available Modes:
blurbobb - Random pixel blocks at intervals
fatcat - Intensified colors with layered brightness multiplication
vaporwave - Vaporwave aesthetic with specific color palette
castles - High contrast masks based on luminance thresholds
chimera - Channel mixing with noise and grain effects
gazette - Selective pixel blocking with binary threshold
manticore95 - Complex distortion patterns with pixel shifting
schifty - Random-length block shifting effects
vana - Selective color channel mixing with randomization
veneneux - Poisonous-looking color shifts with seed variation
void - Noise and grain for dark, textured effects
walter - Threshold-based color transformations with balance correction
A comprehensive glitch effect node that combines scan lines, wave distortions, and color manipulation to create CRT and digital artifact effects.
Input: Single image or batch
Parameters
Parameter
Description
glitch_amount
Controls overall compression artifacts (0-1). Higher values create more JPEG-like distortion. Default: 0.5
channel_shift
Amount of RGB channel displacement (0-1). Creates chromatic aberration effects. Default: 0.2
pixel_sorting
Threshold for brightness-based pixel sorting (0-1). Default: 0.3
Parameter
Description
wave_amplitude
Intensity of wave distortion (0-1). Default: 0.0
wave_frequency
Frequency of wave patterns (0.1-5.0). Higher values create tighter waves. Default: 0.5
wave_speed
Speed of wave movement (0.1-5.0). Affects distortion pattern spacing. Default: 1.0
Parameter
Description
scan_lines
Intensity of CRT-like scan lines (0-1). Default: 0.0
scan_drift
Amount of horizontal drift in scan lines (0-1). Default: 0.0
scan_curve
CRT-style screen curvature effect (0-1). Default: 0.2
Parameter
Description
color_drift
Vertical color shifting intensity (0-1). Default: 0.0
static_noise
Amount of static noise overlay (0-1). Darker areas receive more noise. Default: 0.0
edge_stretch
Edge-based pixel stretching intensity (0-1). Default: 0.0
TvGlitch Node (WIP Extremely Long Processing)
Simulates authentic analog TV signal distortions and artifacts by emulating the YIQ color space and composite video signal characteristics.
Input: Image batch
Parameters
Parameter
Description
subcarrier_amplitude
Strength of the color subcarrier signal (1-200). Higher values increase color bleeding. Default: 40
composite_preemphasis
Enhances high-frequency components (0-100). Simulates TV signal pre-emphasis. Default: 1.0
Parameter
Description
video_noise
Amount of luminance noise (0-10000). Affects overall brightness fluctuations. Default: 100
video_chroma_noise
Amount of color noise (0-10000). Creates color distortions. Default: 100
video_chroma_phase_noise
Color phase shifting intensity (0-100). Causes color wobbling. Default: 15
Parameter
Description
video_chroma_loss
Probability of color signal dropout per scanline (0-1). Creates color loss effects. Default: 0.24
scanlines_scale
Intensity of CRT scanline effect (0-5). Higher values create more pronounced scanlines. Default: 1.5
A stylistic effect node that transforms images into vaporwave aesthetics using customizable color bands and thresholds.
Input: Single image or batch
Parameters
Parameter
Description
threshold_dark
Darkest threshold level (0-1). Pixels below this become black. Default: 0.059
threshold_light
Lightest threshold level (0-1). Pixels above this become white. Default: 0.922
mid_threshold_1
First mid-level threshold (0-1). Default: 0.235
mid_threshold_2
Second mid-level threshold (0-1). Default: 0.471
mid_threshold_3
Third mid-level threshold (0-1). Default: 0.706
Parameter
Description
color1 (Cyan)
R: 0.0, G: 0.722, B: 1.0
color2 (Magenta)
R: 1.0, G: 0.0, B: 0.757
color3 (Purple)
R: 0.588, G: 0.0, B: 1.0
color4 (Aqua)
R: 0.0, G: 1.0, B: 0.976
Each color band has separate _r, _g, _b parameters (0-1) for full customization.
A psychedelic image processing node that combines VHS-style artifacts with acid-like color distortions.
Input: Single image or batch
Parameters
Parameter
Description
slice_size
Height of glitch slices (1-100). Larger values create thicker bands of distortion. Default: 20
offset_range
Maximum horizontal displacement of slices (1-200). Larger values allow for more extreme shifts. Default: 50
glitch_probability
Chance of applying glitch to each slice (0-1). Higher values create more frequent distortions. Default: 0.3
Parameter
Description
color_shift
Intensity of RGB channel separation (0-1). Higher values create more extreme color bleeding. Default: 0.5
A node that simulates CRT monitor effects with scan lines, RGB shift, and dot patterns.
Input: Single image or batch
Parameters
Parameter
Description
scan_density
Frequency of scan lines (2-10). Higher values create more tightly packed lines. Default: 4
dot_pattern
Intensity of CRT-style dot matrix effect (0-1). Higher values create more visible dots. Default: 0.15
Parameter
Description
rgb_shift
Amount of RGB channel separation (0-0.05). Creates chromatic aberration effect. Default: 0.015
brightness
Overall brightness multiplier (0.5-2.0). Enhances the CRT glow effect. Default: 1.2