| Crates.io | hashhaze |
| lib.rs | hashhaze |
| version | 0.3.2 |
| created_at | 2025-02-22 21:46:32.393378+00 |
| updated_at | 2025-04-02 15:47:04.825084+00 |
| description | A CLI application for generating BlurHash from images |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1565826 |
| size | 78,018 |
A high-performance Rust implementation of the BlurHash algorithm. HashHaze is a CLI tool that generates compact, visually pleasing image placeholders using the BlurHash encoding scheme.
# Clone the repository
git clone https://github.com/yourusername/hashhaze.git
cd hashhaze
# Build the project
cargo build --release
# The binary will be available at target/release/hashhaze
# Basic usage with a single image
hashhaze input.jpg
# Process multiple images
hashhaze image1.jpg image2.png directory/
# Customize components (default: -x 4 -y 3)
hashhaze -x 5 -y 4 input.jpg
# Process an entire directory of images
hashhaze path/to/images/
-x, --components-x <NUMBER>: Number of X components for BlurHash (default: 4)-y, --components-y <NUMBER>: Number of Y components for BlurHash (default: 3)HashHaze implements the BlurHash algorithm, which creates a compact string representation of an image placeholder. The algorithm works by:
The resulting hash can be used to generate a blurred placeholder while the original image loads.
The tool is optimized for performance:
This project is licensed under the MIT License - see the LICENSE.md file for details.
Contributions are welcome! Please feel free to submit a Pull Request.