| Crates.io | flipbook-rs |
| lib.rs | flipbook-rs |
| version | 0.1.0 |
| created_at | 2025-03-21 13:37:25.524553+00 |
| updated_at | 2025-03-21 13:37:25.524553+00 |
| description | Convert JPG pages in a directory (sorted by timestamp) into a single GIF flipbook |
| homepage | |
| repository | https://github.com/katsuhirohonda/flipbook-rs |
| max_upload_size | |
| id | 1600511 |
| size | 22,726 |
A Rust command-line tool to easily create GIF animations from image files.
flipbook-rs is a simple tool that creates animated GIFs from JPEG/PNG files in a specified directory. Files are automatically sorted by modification time to generate smooth animations.
Install directly from crates.io:
cargo install flipbook-rs
This will add the flipbook command to your PATH.
Clone the repository and build the project:
git clone https://github.com/katsuhirohonda/flipbook-rs.git
cd flipbook-rs
cargo build --release
The compiled binary will be available at target/release/flipbook.
Basic usage:
flipbook [DIRECTORY] -o [OUTPUT_FILE] -d [DELAY]
Create a GIF from images in the current directory:
flipbook
Create a GIF from images in a specific directory:
flipbook path/to/images
Specify a custom output filename:
flipbook -o animation.gif
Customize the delay between frames (in 1/100 seconds):
flipbook -d 20
Combine all options:
flipbook path/to/images -o my_animation.gif -d 5
| Parameter | Description | Default Value |
|---|---|---|
| dir | Directory containing image files | Current directory (.) |
| -o, --output | Path to the output GIF file | output.gif |
| -d, --delay | Delay between frames (in 1/100 seconds) | 10 |
Contributions are welcome! Please feel free to submit a Pull Request.