Chatterino/api

Tweet Link Thumbnails: Compose Multiple Images into Collage

leon-richardt opened this issue · 1 comments

Tweets can have multiple images attached (see e.g. this one). It would be nice to compose all images into a collage for the generated thumbnail. In our current architecture, this would require some server-side processing. One tool that can do this is imagemagick via the montage subcommand but there might be something else better suited for our purposes.

(For reference)
Here's a related libvips issue on collage-making libvips/libvips#856.
Available in govips as ArrayJoin().

I am of the opinion to not use imagemagick due to its high memory usage requirements (As is seen with lilliput).