Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 

glitch

Image in, corrupted image out.

Realistic glitches

Glitches that result from corrupted file data.

JPEG

Corrupted entropy data

Current implementation

  • find FFDA (start of scan) marker in byte stream, two bytes after that are the length, read and skip those
  • until next marker (FFxx, but not FF00)  - skip N bytes, where N random from reasonable range (pay attention to byte stuffing (0xFF00)
    • overwrite 1 byte with
      • slightly different value (e.g. AB->A7)
      • random byte (probably nicer/heaver glitch but gets corrupted more easily)

Better implemenation

Read file twice to figure out start and end of scans, then overwrite N evenly distributed bytes, to avoid the "glitch on top and rest of image has bad colors" effect.

Portrait of Giovanni Arnolfini and his Wife

1 2 3 4 5 6 7 8 9

Corrupted header data

No idea if feasible or desirable.

Artistic glitches

Format-independent artistic interpretations of corrupted data.

  • fractal pixelation spots?
  • whatever Pony Island does?

About

Image in, corrupted image out

Resources

License

Releases

No releases published

Packages

No packages published

Languages