| Crates.io | pixel8bit |
| lib.rs | pixel8bit |
| version | 1.0.2 |
| created_at | 2024-11-29 21:50:21.085363+00 |
| updated_at | 2024-11-29 22:22:47.42677+00 |
| description | A Rust library for applying 8-bit pixelation effects with symmetry detection and mirroring. |
| homepage | |
| repository | https://github.com/PeriniM/pixel8bit |
| max_upload_size | |
| id | 1466079 |
| size | 66,570 |
pixel8bit is a Rust library and command-line tool that applies 8-bit pixelation effects to images, with optional symmetry detection and mirroring.
To install pixel8bit, ensure you have Rust and Cargo installed. Then, run:
cargo install pixel8bit
After installation, you can use the pixel8bit command-line tool as follows:
pixel8bit <input_path> <output_path> <block_size> <is_mirrored>
Example:
To pixelate an image with a block size of 16 pixels and enable mirroring:
pixel8bit input.jpg output.jpg 16 true
To use pixel8bit as a library in your Rust project, add the following to your Cargo.toml:
[dependencies] pixel8bit = "0.1.0"
Then, in your code:
use pixel8bit::pixelate::apply_pixelation;
use pixel8bit::symmetry::{detect_symmetry, mirror_image};
| Block Size | Result |
|---|---|
| Original | ![]() |
| 8x8 | ![]() |
| 16x16 | ![]() |
| 32x32 | ![]() |
| 64x64 | ![]() |
Contributions are welcome! Please fork the repository and submit a pull request.
This project is licensed under the MIT License.