18 stable releases (3 major)

3.5.1 Oct 20, 2023
3.5.0 Jun 8, 2023
3.3.0 May 25, 2023
3.1.1 Mar 12, 2023
0.2.0 Jun 13, 2022

#141 in Images

Download history 32/week @ 2023-10-28 6/week @ 2023-11-04 26/week @ 2023-11-11 9/week @ 2023-11-18 67/week @ 2023-11-25 43/week @ 2023-12-02 26/week @ 2023-12-09 6/week @ 2023-12-16 44/week @ 2023-12-23 3/week @ 2023-12-30 24/week @ 2024-01-06 8/week @ 2024-01-13 12/week @ 2024-01-20 42/week @ 2024-01-27 2/week @ 2024-02-03 70/week @ 2024-02-10

129 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 <MIN_RATE>            Minimum chunks to process [default: 1]
  -m, --max-rate <MAX_RATE>            Maximum chunks to process [default: 7]
  -p, --pixelation <PIXELATION>        Pixelation rate [default: 10]
  -l, --line-shift <LINE_SHIFT>        Line shift rate [default: 0.3]
  -r, --reverse <REVERSE>              Reverse rate [default: 0.3]
  -f, --flip <FLIP>                    Flip rate [default: 0.3]
  -c, --channel-swap <CHANNEL_SWAP>    Channel swap rate [default: 0.3]
  -t, --channel-shift <CHANNEL_SHIFT>  Channel shift rate [default: 0.3]
  -s, --seed <SEED>                    Custom seed
  -b, --batch <BATCH>                  Number of files to output
  -o, --output <OUTPUT>                Output filename
  -h, --help                           Print help (see more with '--help')
  -V, --version                        Print version

libmosh

Follow the example from docs.rs.

Dependencies

~2–16MB
~205K SLoC