Skip to content

Conversation

@redstrate
Copy link
Contributor

@redstrate redstrate commented Aug 19, 2023

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
Copy link
Member

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
Copy link
Contributor Author

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!

@KitsuneRal KitsuneRal added the enhancement A feature or change request for the library label Sep 11, 2023
@redstrate redstrate force-pushed the work/redstrate/blurhash-support branch from 0ea5d48 to d7f2d33 Compare October 19, 2023 19:29
@redstrate
Copy link
Contributor Author

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

@redstrate redstrate force-pushed the work/redstrate/blurhash-support branch 2 times, most recently from b887bac to 7a4ddda Compare October 19, 2023 19:36
Copy link
Member

@KitsuneRal KitsuneRal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for waiting; overall LGTM save for the tests

@redstrate redstrate force-pushed the work/redstrate/blurhash-support branch 3 times, most recently from b800ffb to 8bc55f0 Compare July 20, 2024 15:19
@redstrate redstrate requested a review from KitsuneRal July 20, 2024 15:19
Copy link
Member

@KitsuneRal KitsuneRal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly LGTM but I have a question regarding the protected piece. I actually thought it would be merely two functions in the interface but you seem to intend something more, apparently?

This adds an optional key to ImageContent, for displaying a blurhash on
the client before an image is loaded.
@redstrate redstrate force-pushed the work/redstrate/blurhash-support branch from 8bc55f0 to fd7cd98 Compare July 8, 2025 21:04
So every client that wants to implement blurhashes doesn't have to copy
this file over and over.
@redstrate redstrate force-pushed the work/redstrate/blurhash-support branch from fd7cd98 to e54b582 Compare July 8, 2025 21:05
@KitsuneRal
Copy link
Member

Okay I took a look at it once again and the same question from above holds: what's the point of having the protected interface and the whole class in fact? Why not a namespace with two functions and the rest pulled into the .cpp backend?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement A feature or change request for the library

Projects

Status: 0.9 - To Do

Development

Successfully merging this pull request may close these issues.

2 participants