- 
                Notifications
    
You must be signed in to change notification settings  - Fork 60
 
Add support for xyz.amorgan.blurhash in ImageContent #700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Add support for xyz.amorgan.blurhash in ImageContent #700
Conversation
| 
           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!  | 
    
0ea5d48    to
    d7f2d33      
    Compare
  
    | 
           Okay the blurhash implementation has been moved here, will update the NeoChat MR accordingly  | 
    
b887bac    to
    7a4ddda      
    Compare
  
    There was a problem hiding this 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
b800ffb    to
    8bc55f0      
    Compare
  
    There was a problem hiding this 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.
8bc55f0    to
    fd7cd98      
    Compare
  
    So every client that wants to implement blurhashes doesn't have to copy this file over and over.
fd7cd98    to
    e54b582      
    Compare
  
    | 
           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?  | 
    
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