25 stable releases (4 major)

Uses new Rust 2024

4.1.0 Mar 23, 2025
3.6.1 Jan 7, 2025
3.6.0 Jul 22, 2024
3.5.2 Feb 22, 2024
0.2.0 Jun 13, 2022

#137 in Images

Download history 8/week @ 2024-12-31 143/week @ 2025-01-07 18/week @ 2025-01-14 1/week @ 2025-01-21 4/week @ 2025-02-04 20/week @ 2025-02-18 6/week @ 2025-02-25 2/week @ 2025-03-04 222/week @ 2025-03-11 164/week @ 2025-03-18 33/week @ 2025-03-25 11/week @ 2025-04-01 5/week @ 2025-04-08

262 downloads per month
Used in webpixels

MIT license

1MB
1.5K SLoC

pixelmosh

Crates.io Tests codecov

Compilation

CLI

cargo install pixelmosh

GUI (GTK)

cargo install pixelmosh --features gui

Basic usage

pixelmosh foo.png

Options

┌─────────────────────────────────────┐
│ █▀▄ █ ▀▄▀ ██▀ █   █▄ ▄█ ▄▀▄ ▄▀▀ █▄█ │
│ █▀  █ █ █ █▄▄ █▄▄ █ ▀ █ ▀▄▀ ▄██ █ █ │
└─────────────────────────────────────┘
PNG corrupter

Usage: pixelmosh [OPTIONS] <FILE>

Arguments:
  <FILE>  File path

Options:
  -n, --min-rate <VALUE>       Minimum chunks to process [default: 1]
  -m, --max-rate <VALUE>       Maximum chunks to process [default: 7]
  -p, --pixelation <VALUE>     Pixelation rate [default: 10]
  -l, --line-shift <VALUE>     Line shift rate [default: 0.3]
  -r, --reverse <VALUE>        Reverse rate [default: 0.3]
  -f, --flip <VALUE>           Flip rate [default: 0.3]
  -c, --channel-swap <VALUE>   Channel swap rate [default: 0.3]
  -t, --channel-shift <VALUE>  Channel shift rate [default: 0.3]
  -a, --ansi                   Use ANSI color palette
  -s, --seed <VALUE>           Custom seed
  -b, --batch <VALUE>          Number of files to output
  -o, --output <VALUE>         Output filename
  -h, --help                   Print help (see more with '--help')
  -V, --version                Print version

libmosh

Follow the example from docs.rs.

Dependencies

~4–15MB
~217K SLoC