An open API service indexing awesome lists of open source software.

https://github.com/rabuu/photoshoot

Generate a GIF of your photo shoot
https://github.com/rabuu/photoshoot

Last synced: 4 months ago
JSON representation

Generate a GIF of your photo shoot

Awesome Lists containing this project

README

          

# photoshoot
Generate a GIF of canon balls that shoot around and slowly fall in place to form an image.

The project is inspired by [this video](https://youtu.be/lS_qeBy3aQI?si=0QOkNiy3eRM54eK1) (especially the end).

In the current state, `photoshoot` is completely unoptimizied and slow.
Often it hangs in the end but I also had some really good results after tuning the settings.

# usage
```console
$ photoshoot --output out.gif some-photo.jpg
$ photoshoot --help
Usage: photoshoot [OPTIONS] --output

Arguments:
Path to the input photo

Options:
-o, --output Path to the output GIF
-f, --frame-rate Frame rate of the GIF [default: 0.02]
--gif-speed Speed of the writing of the GIF [default: 10]
-s, --substeps Simulation substeps [default: 5]
--gravity Simulation gravity [default: 9.81]
-r, --radius Radius of the canon balls [default: 1]
-b, --black-bg Black background (default: white)
-i, --infinite Should the GIF run repeat infinitely
-l, --last-frame How much longer should the last frame be [default: 50]
--dry-run Don't write to file
-h, --help Print help
-V, --version Print version
```

## little showcase
![input photo](./examples/ferris.png) (from [rusteacean.net](https://rusteacean.net))
![photoshoot created GIF](./examples/ferris.gif)