# petpet-rs
[](https://crates.io/crates/petpet)
[](https://yande.re/post/show/304166)
Also [petpet](https://github.com/camprevail/pet-pet-gif/), but in Rust.
The default hands images were credited by [PetPet Generator](https://benisland.neocities.org/petpet/).
[Here](https://github.com/poly000/awesome-petpet-hands) you can download more custom hands.
You can replace hand images in src/res then **recompile** petpet.
**Note:** crates.io's version is outdated.
## Download
You can download the latest release from [releases](https://github.com/poly000/petpet-rs/releases) page.
## Build
```bash
cargo +nightly build --release
```
## Usage
```bash
cargo +nightly run --release -- <input_image> <output_gif> <encode_speed>
```
**[details about encode_speed](https://doc.servo.org/color_quant/struct.NeuQuant.html#method.new)**

Note that **format of the input image must be the same as its extension explains**,
otherwise you will get an error like `Bad Signature`!
## Todo
- [x] transparent background: [#1](https://github.com/poly000/petpet-rs/issues/1)
- [ ] Upload new version to crates.io: [#2](https://github.com/poly000/petpet-rs/issues/2)
# Clicks
