Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/charlesrocket/pixelmosh

PNG corrupter
https://github.com/charlesrocket/pixelmosh

glitch gtk

Last synced: 3 months ago
JSON representation

PNG corrupter

Awesome Lists containing this project

README

        

# `pixelmosh`
[![Crates.io](https://img.shields.io/crates/v/pixelmosh)](https://crates.io/crates/pixelmosh)
[![Tests](https://github.com/charlesrocket/pixelmosh/actions/workflows/ci.yml/badge.svg?branch=trunk)](https://github.com/charlesrocket/pixelmosh/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/charlesrocket/pixelmosh/branch/trunk/graph/badge.svg)](https://codecov.io/gh/charlesrocket/pixelmosh)

### Compilation

#### CLI

```
cargo install pixelmosh
```

#### GUI (GTK)

```
cargo install pixelmosh --features gui
```

### Basic usage

```
pixelmosh foo.png
```

### Options

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

Usage: pixelmosh [OPTIONS]

Arguments:
File path

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

## `libmosh`
Follow the [example](https://docs.rs/pixelmosh/latest/libmosh/struct.MoshCore.html#example) from [docs.rs](https://docs.rs/pixelmosh/latest/libmosh/).