# pxlsrt-cli

> Pixel sort images from the command line.

Latest version **1.1.0** (published 2019-02-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install pxlsrt-cli
pnpm add pxlsrt-cli
yarn add pxlsrt-cli
bun add pxlsrt-cli
```

Provides the command `pxlsrt`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2019-02-08 |
| First published | 2018-03-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 41 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | czycha |
| Maintainers | czycha |

## Links

- npm: https://www.npmjs.com/package/pxlsrt-cli
- Repository: https://github.com/czycha/pxlsrt-cli
- npm.io page: https://npm.io/package/pxlsrt-cli

## Dependencies (3)

- [jimp](https://npm.io/package/jimp.md) 0.6.x
- [yargs](https://npm.io/package/yargs.md) ^11.0.0
- [pxlsrt](https://npm.io/package/pxlsrt.md) 1.2.0

## Recent versions

- 1.1.0 (latest) — 2019-02-08
- 1.0.0 — 2018-03-16

## README

# pxlsrt-cli

Command line interface for [pxlsrt.js](http://github.com/czycha/pxlsrt.js). Pixel sort your images from the command line!

## Usage
```bash
pxlsrt command <image path> [options]
```

## Shared command options

_[See pxlsrt.js for more in-depth information.](https://github.com/czycha/pxlsrt.js#default-filter-options)_

| Option | Default | Choices/Type | Description |
|---|---|---|---|
| `--help` | | | Displays help for command. |
| `--version, -v` | | | Displays version. |
| `--output, -o` | stdout | `string` | Output to file. |
| `--method, -m` | `sumRGBA` | _[See pxlsrt.js](https://github.com/czycha/pxlsrt.js#default-filter-options)_ | Sort method. |
| `--direction, -d` | `horizontal` | `[horizontal, vertical, tlbr, trbl]` | Sort direction. |
| `--smooth, -s` | `false` | `boolean` | Group same pixels together to keep them uninterrupted. |
| `--reverse, -r` | `false` | `[true, false, either]` | Reverse bands or not. Use either to randomly reverse. |
| `--middlate, -M` | `0` | `integer` | Middlation rearranges a band so the first pixel is in the middle, and continues to wind outwards. Use positive values to loop that many times. Use negative values to apply the process in reverse that many times. |

## Commands

### brute

_[See pxlsrt.js for more in-depth information.](https://github.com/czycha/pxlsrt.js#brute-filter)_

| Option | Default | Choices/Type | Description |
|---|---|---|---|
| `--min` | max | `integer` | The minimum length of the band. By default, equals the maximum length. |
| `--max` | line length | `integer` | The maximum length of the band. By default, equals the line length. |

### smart

_[See pxlsrt.js for more in-depth information.](https://github.com/czycha/pxlsrt.js#smart-filter)_

| Option | Default | Choices/Type | Description |
|---|---|---|---|
| `--threshold, -t` | `20` | `integer` | Threshold for edge detection. The larger the number, the larger the region. |

---
_Source: https://npm.io/package/pxlsrt-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
