JpegGlitcher.jl

Time to mess with Jpegs!
Author JuliaWTF
Popularity
5 Stars
Updated Last
1 Year Ago
Started In
November 2022

JpegGlitcher

It's glitching time!

JpegGlitcher only exports the glitch function. glitch takes an image, compresses it using the JPEG encoding, safely modifies some bytes of the compressed version and return the decoded version.

Here is a basic example, using the default parameters.

using JpegGlitcher
using Random, FileIO, TestImages

img = testimage("mountainview")
glitch(img)

Glitched version of the Mountain View image

We can also make an animation, playing with the different parameters!

cat([glitch(img; rng = Random.Xoshiro(42), n = i, quality = 20) for i in 1:50]...; dims=3)

Low quality animated glitching

Used By Packages

No packages found.