Israel Lopez
← Projectsart · tool · open source · active

glitch.jpeg

A study on JPEG glitching as an artform

Boost luma DC quantizer + Spike a single frequency + Swap two chunks Scale chroma quantizers Scale chroma quantizers + Boost luma DC quantizer + Claim RGB instead of YCbCr (Adobe APP14) + Single bit flip Claim RGB instead of YCbCr (Adobe APP14) + Scale chroma quantizers Spike a single frequency + Corrupt the DC scan only + Repeat a chunk Boost luma DC quantizer + Delete a chunk

In 1995 I was sitting in the computer lab at my elementary school, surfing the world wide web for the first time. I saw something strange. Previously I was used to images on my home PC to just pop in off the CD ROM Encarta Encylopedia.

Here I was seeing images slowly fade in either as a block of an image or a gradual quality improvement as the shared T1 line fed those bytes to a Macintosh Performa.

Sometimes an image would come in glitched. I didn’t understand it at the time, but what I was seeing was the failure of the networking to either transmit the bytes of the image to me from the server, or the image itself was damaged at the source.

Boost luma DC quantizer + Repeat a chunk + Swap two chunks

Most of the time I couldnt tell there was a difference. Other times it would produce a ‘scary’ image like above. One of my first emotional experiences using the internet and computers was one of fear, because while i’ve seen TV snow and scrambled tv channels, images like this streamed in. As if the void was reaching out to me.

For being a precocious kid I just took it in as the ‘digital’ world having a bit of a problem, and that my mind would in the future understand it. It did scratch a visual itch that got me past the intial fear.

I dont think anyone really considered the emotional impact of technology on young children. Especially the association of strong fear-of-the-unknown. Yet here we are.

Later in education, I never really thought about it again. Networks/technologies/stacks/protocols/formats all got better at the bit-perfect transmission of data. It still happens, maybe with a corrupted SD card.

It wasnt until about 2010 or so that I realized that glitching jpegs was an artform. Using nonstandard tools like Audacity or a text editor or even a hex-editor making direct binary edits to an image to see what it does. I tried my hand a few times, but I didnt have the patience to just edit bits one at a time to get a result.

Until December 5th 2026.

I recently saw some glitched pixel-sorting visual styles in a music video, and it inspired me to re-think glitched image generation. This time with the support of LLM AI tools like Claude Code. I described what I wanted.

i want to work on a library of glitchart on JPEG images, maybe a library of techniques on JPEG itself, on 1024x1024 test image, then categorize what each does in a webbrowser, using some common terms and then explanations from the JPEG decoder why-or-how the binary changes cause the visual effect

Then after about 2 hours of total time, 33 minutes of API time, and $15.32 of opus/haiku costs. I’ve come up with glich.jpeg.

Obivously I cant claim originality, but I was inspired by what was out there already and wanted to make my own.

The goal was to make a tool that I could pass through my own images and create a showcase of art. Obviously others are welcome too, and maybe i’ll get a domain or social-media hashtag for people to tag their generated images.

Visit the github page or play with it in your browser: https://ilopez.com/glitch-jpeg/.

Discover: one technique at a time on the test card, with the decoder’s explanation

Generate: a grid of random two-layer recipes on the cat photo

Lightbox: stepping through a piece layer by layer

Create: the layer stack, with each layer’s parameters, explanation and byte changes

Showcase: saved pieces with their recipes

Search

Loading…

Open original ↗