| Crates.io | png-glitch-cli |
| lib.rs | png-glitch-cli |
| version | 0.4.1 |
| created_at | 2024-06-20 00:18:38.834474+00 |
| updated_at | 2025-12-21 07:50:29.669519+00 |
| description | Cli to glitch PNG images. |
| homepage | |
| repository | https://github.com/chikoski/png-glitch |
| max_upload_size | |
| id | 1277459 |
| size | 27,784 |
To install png-glitch from source, run the following command:
% cargo install png-glitch --locked
png-glitch glitches given PNG file and emit it to glitched.png. The file name for the glitched PNG file can be specified with -o option. Please run the command with --help option for full option:
Usage: png-glitch [OPTIONS] <PNG_FILE>
Arguments:
<PNG_FILE>
Options:
-o <OUTPUT_FILE>
[default: glitched.png]
--change-filter-type <CHANGE_FILTER_TYPE>
Magnitude for Change Filter Type filter
--replace <REPLACE>
Magnitude for Replace filter
--transpose <TRANSPOSE>
Magnitude for Transpose filter
--set-zero <SET_ZERO>
Magnitude for Set Zero filter
--config <CONFIG>
Path to YAML config file
--remove-filter
Remove filter from all scan lines
--sub
Change filter type of all scan lines to Sub
--up
Change filter type of all scan lines to Up
--average
Change filter type of all scan lines to Average
--paeth
Change filter type of all scan lines to Paeth
--pre-process <PRE_PROCESS>
Apply a filter before other glitch filters [possible values: remove-filter, sub-filter, up-filter, average-filter, paeth-filter]
-h, --help
Print help
-V, --version
Print version
The original image:

And the glitched one:

This repository consists of the following things:
png-glitch-cli is a sort of sample code to show basic usage of png-glitch create, for now.
MIT License. Please refer to LICENCE file for details.