Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
theogf committed Nov 12, 2022
1 parent 0373b24 commit f8bfc3b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

It's glitching time!

`JpegGlitcher` offers uniquely the `glitch` function.
`glitch` will take an image, compress it using the JPEG encoding, safely modify some
bytes of the compressed version and return the disencoded version.
`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 an example, showing the evolution over time:
Here is a basic example, using the default parameters.

```julia
using JpegGlitcher
Expand All @@ -18,10 +18,10 @@ glitch(img)

![Glitched version of the Mountain View image](assets/glitched.png)

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

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

![Low quality animated glitching](assets/glitched_anim.gif)
![Low quality animated glitching](assets/glitched_anim.gif)

0 comments on commit f8bfc3b

Please sign in to comment.