# Glitch effect generator

Your photo, a rendered scene or a test signal, broken the way a codec breaks: blocks dragged by motion vectors, light sorted into streaks, rows torn sideways.

Open the generator: https://morph.ogeny.app/glitch-art/

## Design choices

- **Treated photography** (`image.treated-photo`): Duotone, high-contrast or posterised photographs. “Source”: A photo. https://stylogeny.com/design-choices/treated-photography/
- **3D render** (`image.3d-render`): Computer-generated objects, scenes and textures. “Source”: A rendered scene. https://stylogeny.com/design-choices/3d-render/
- **Found & vernacular imagery** (`image.found-vernacular`): Clip art, stock, screenshots, appropriated ephemera. “Source”: A test signal. https://stylogeny.com/design-choices/found-and-vernacular-imagery/
- **Complementary clash** (`color.complementary-clash`): Vibrating opposites placed edge to edge. “Colour from the fault”: Palette. Measured on the opening picture: neighbouring pixels in opposite hues 38‰ with “Palette”, 24‰ with “Posterised source” and 3.8‰ with “Shifted channels”. https://stylogeny.com/design-choices/complementary-clash/
- **Full polychrome** (`color.polychrome`): Many saturated hues at once. “Colour from the fault”: Posterised source. https://stylogeny.com/design-choices/full-polychrome/
- **Misregistration & overprint** (`surface.misregistration`): Inks slightly out of register; transparent overprints. “Colour from the fault”: Shifted channels. https://stylogeny.com/design-choices/misregistration-and-overprint/
- **Glitch** (`surface.glitch`): Corrupted pixels, scanlines, compression artefacts. Set by “Datamosh”. https://stylogeny.com/design-choices/glitch/
- **Broken grid** (`layout.broken-grid`): A grid is implied and then deliberately violated or deconstructed. Set by “Torn lines”. https://stylogeny.com/design-choices/broken-grid/
- **Full bleed** (`layout.full-bleed`): Image or colour runs off every edge; no protective margins. Always. https://stylogeny.com/design-choices/full-bleed/
- **Rectilinear** (`form.rectilinear`): Orthogonal bars, blocks and lines. Always. https://stylogeny.com/design-choices/rectilinear/
- **Generative & AI** (`medium.generative-code`): Code, parametric systems or machine-learning models. Always. https://stylogeny.com/design-choices/generative-and-ai/
- **Rebellious & subversive** (`tone.rebellious`): Against authority, taste or convention. Always. https://stylogeny.com/design-choices/rebellious-and-subversive/

## How it works

- The fault is the whole picture: a frame buffer of macroblocks is broken as a decoder breaks it, with motion vectors repeated until blocks smear, light runs sorted into streaks, DCT patterns and torn rows.
- Every mark sits on the codec’s grid: blocks, half-blocks and cells a quarter of a macroblock wide, so the structure of the compression shows.
- Colour comes from the fault: the palette mapped by lightness, the source’s own colours posterised, or three channels shifted apart.

It never does:

- No noise painted over an intact picture, no fake error windows or words, and no imitation of a particular artist’s piece or a music video.
- Starts from the visitor’s own photo, a bundled public-domain sample or a scene it renders itself, never from someone else’s footage.
- In motion only the torn bands move, rolling slowly down the frame, below the WCAG flash thresholds.

## Controls

- `source` Source (photo | render | signal; default photo): What gets broken: your own photo (it stays on your device), a lit scene of spheres on a chequered floor, or colour bars and ramps.
- `colour` Colour from the fault (map | own | split; default split): The palette’s colours (a photo is mapped to them by lightness), the source’s own colours at four levels a channel, or red, green and blue as three layers slipped apart. Palette: Measured on the opening picture: neighbouring pixels in opposite hues 38‰ with “Palette”, 24‰ with “Posterised source” and 3.8‰ with “Shifted channels”.
- `block` Macroblocks (16–48, default 24): The size of the compression blocks, in thousandths of the width.
- `coarse` Compression (0–1, default 0.35): How much detail a block may hold before it is coded as one flat block.
- `mosh` Datamosh (0–1, default 0.6): How far motion vectors drag the blocks, and over how much of the frame.
- `sort` Pixel sort (0–1, default 0.5): How much of the light picture is sorted by lightness into streaks.
- `streak` Streaks run (down | across; default down)
- `broken` Broken blocks (0–1, default 0.35): Runs of blocks that decode as DCT patterns in two clashing inks, or repeat to the end of the slice.
- `tear` Torn lines (0–1, default 0.4): Bands of rows that slip sideways and wrap round; in motion they roll down the frame. With shifted channels it also sets how far the layers slip apart.

## About Glitch Art & Datamosh Graphics

Glitch art makes digital failure the picture. From the early 2000s artists broke files on purpose: they edited an image’s bytes, deleted a video’s keyframes so one shot smeared into the next (datamoshing), or sorted a photo’s pixels into streaks. Compression blocks, torn scanlines and shifted colour channels took the place of drawing, and the colour came from the fault.

This generator works on a small frame buffer the way a broken decoder does. Each macroblock gets a motion vector and the frame is moved by them again and again until blocks drag and smear; the result is coded in whole blocks, half-size blocks or single cells by how much detail each holds; runs of light cells are sorted into streaks; some blocks decode as DCT patterns in two clashing inks; and bands of rows slip sideways. In motion the torn bands roll slowly down the frame.

Everything is drawn as flat rectangles on the codec’s grid, so the SVG holds no copy of your photo and stays sharp at any size. Your photo is read only in your browser and is never uploaded.

Glitch Art & Datamosh Graphics in Stylogeny (2001–today): https://stylogeny.com/styles/glitch-art/

## A short history of glitch art and datamoshing

The idea of using failure as material is older than the file. In the 1930s artists painted straight onto film, and in the 1960s they held magnets to television sets to bend the picture. The word glitch came into art from the electronic music of the 1990s, where musicians built tracks from deliberately skipping CDs.

Designers carried the look onto record sleeves and into typefaces, and in 2009 datamoshing reached mainstream music videos, which soon overshadowed the artists who had developed the technique. Around 2010 festivals in Chicago, Amsterdam and Birmingham gathered the scene, many of whose artists framed the work as a critique of a noiseless, frictionless medium. The look has since become a stock filter, and practitioners answer by changing the file format or the process so that the work stays a real break.

## How the generator breaks a photo like a codec

Source chooses what gets broken: A photo of your own, A rendered scene of spheres on a chequered floor, or A test signal of colour bars and ramps. Macroblocks sets the size of the compression blocks, and Compression sets how much detail a block may hold before it is coded as one flat block.

Datamosh sets how far the motion vectors drag the blocks and over how much of the frame. Pixel sort sets how much of the light picture is sorted into streaks, and Streaks run turns them Down or Across. Broken blocks sets how many runs of blocks decode as DCT patterns or repeat to the end of their slice. Torn lines sets how many bands of rows slip sideways.

Colour from the fault chooses the inks. Palette maps the picture to the palette by lightness, and Posterised source keeps its own colours at four levels a channel. Shifted channels slips red, green and blue apart as three layers.

## What to make with a glitch effect on your photo

A broken portrait or test signal makes a record cover in Square, a gig poster in Poster, or a slide background for a talk about technology in Landscape. Story suits a vertical post and Banner a page header. With motion on, the torn bands roll slowly down the frame, which gives a short looping video.

Your photo is read in your browser and never leaves your device, and the generator never takes anyone else’s footage. Export SVG, PNG or video; the pictures are yours to use.

## How to make a glitch effect that looks broken, not filtered

Leave part of the subject readable: the style works when the picture half dissolves, so a few faults at full strength often beat every slider pushed high. Start from a photo with dark areas and mid-tones, since a mostly white photo turns almost white in Shifted channels. A test signal keeps its bars best at a Datamosh of 0.3 or less.

Coarse Macroblocks with low Compression show the codec’s grid clearly; fine blocks read as texture. If you base a picture on a particular artist’s process, credit it. Use your own photos or ones you have the rights to, and check a moving version at full size before you show it on a large screen.

## Recipe

```json
{
  "tool": "glitch-art",
  "v": 1,
  "seed": 7,
  "format": "portrait",
  "params": {
    "source": "photo",
    "colour": "split",
    "block": 24,
    "coarse": 0.35,
    "mosh": 0.6,
    "sort": 0.5,
    "streak": "down",
    "broken": 0.35,
    "tear": 0.4
  },
  "palette": "glitch-art"
}
```
