quotient-im / libQuotient

A Qt library to write cross-platform clients for Matrix
https://quotient-im.github.io/libQuotient/
GNU Lesser General Public License v2.1
134 stars 56 forks source link

Add support for xyz.amorgan.blurhash in ImageContent #700

Open redstrate opened 1 year ago

redstrate commented 1 year ago

This adds an optional key to ImageContent, for displaying a blurhash on the client before an image is loaded.

Example consumer in Neochat: https://invent.kde.org/network/neochat/-/merge_requests/1151

KitsuneRal commented 1 year ago

I'd be happy to see the blurhash generation code in the library too - would you mind moving it over here from the NeoChat MR? :)

redstrate commented 1 year ago

I'd be happy to see the blurhash generation code in the library too - would you mind moving it over here from the NeoChat MR? :)

Sure can!

redstrate commented 1 year ago

Okay the blurhash implementation has been moved here, will update the NeoChat MR accordingly