4 releases (2 breaking)

0.3.0 Sep 24, 2024
0.2.0 Jul 3, 2024
0.1.1 Jun 20, 2024
0.1.0 Jun 20, 2024

#117 in Images

Download history 222/week @ 2024-06-14 45/week @ 2024-06-21 102/week @ 2024-06-28 18/week @ 2024-07-05 33/week @ 2024-09-13 187/week @ 2024-09-20 25/week @ 2024-09-27

245 downloads per month

MIT license

3.5MB
1K SLoC

png-glitch: a tool to glitch PNG images

Installation

To install png-glitch from source, run the following command:

% cargo install png-glitch --locked 

Usage

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]
  -h, --help            Print help

Example

The original image: The original PNG file is a photo of a media art placed in a slightly darker space.

And the glitched one:

In this repository

This repository consists of the following things:

  • png-glitch-cli, a binary crate for a command line interface (CLI) to glitch PNG files.
  • png-glitch crate, a library to glitch PNG images.

png-glitch-cli is a sort of sample code to show basic usage of png-glitch create, for now.

Licence

MIT License. Please refer to LICENCE file for details.

Dependencies