25 stable releases (4 major)

Uses new Rust 2024

new 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

#109 in Images

Download history 13/week @ 2024-11-27 202/week @ 2024-12-04 217/week @ 2024-12-11 4/week @ 2024-12-18 3/week @ 2024-12-25 58/week @ 2025-01-01 99/week @ 2025-01-08 10/week @ 2025-01-15 4/week @ 2025-02-05 24/week @ 2025-02-19 4/week @ 2025-02-26 235/week @ 2025-03-12

263 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
~218K SLoC