https://github.com/ravicious/collage
Make simple collages with ease
https://github.com/ravicious/collage
collage collage-maker
Last synced: 2 months ago
JSON representation
Make simple collages with ease
- Host: GitHub
- URL: https://github.com/ravicious/collage
- Owner: ravicious
- License: gpl-3.0
- Created: 2021-06-29T09:46:45.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-18T09:59:14.000Z (over 3 years ago)
- Last Synced: 2025-02-10T09:16:59.576Z (4 months ago)
- Topics: collage, collage-maker
- Language: Rust
- Homepage: https://mirrors.link/collage/
- Size: 3.13 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# collage
## Rationale
I often post photos of my cat on Discord, but I don't like how Discord displays multiple uploaded
photos, particularly in portrait orientation.collage lets you upload two photos and then it stitches them together. The result will always be a
landscape image, unless the input is two landscape photos then collage will make a portrait image.
The bigger image will be scaled down to match the smaller in width or height.When uploading more than two photos, collage uses an algorithm described in [Photo Layout with a
Fast Evaluation Method and Genetic Algorithm](https://www.researchgate.net/publication/233529670_Photo_Layout_with_a_Fast_Evaluation_Method_and_Genetic_Algorithm).It's not yet fully implemented and has some quirks, particularly around actually rendering the
photos, but it tries to find the optimal layout. The optimal layout is one in which the images keep
their original dimensions.## Development
To run this thing in development mode:
```
cargo install wasm-pack
yarn
yarn dev-server
```