Skip to content
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

Blurhash support #701

Merged
merged 9 commits into from
Aug 6, 2022
Merged

Blurhash support #701

merged 9 commits into from
Aug 6, 2022

Conversation

ginnyTheCat
Copy link
Collaborator

@ginnyTheCat ginnyTheCat commented Jul 31, 2022

Description

Adds blurhash support as for MSC2448.

  • Sending
    • Images
    • Videos
  • Receiving
    • Images
    • Videos
2022-08-04.09-25-11.mp4

(With "Good 3G" network throttle option)

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

Preview: https://62ede4ef4739797ad4345d50--pr-cinny.netlify.app
⚠️ Exercise caution. Use test accounts. ⚠️

@ginnyTheCat
Copy link
Collaborator Author

Element web does a kind of pulsing animation to signalize that it's not the actual image/thumbnail yet (matrix-org/matrix-spec-proposals#2448 (comment)). Should we do something similar?

@ajbura
Copy link
Member

ajbura commented Aug 4, 2022

I think it is good as it is now. And also match the message loading placeholder.

Copy link
Member

@ajbura ajbura left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@ajbura ajbura merged commit 04f910e into cinnyapp:dev Aug 6, 2022
@ginnyTheCat ginnyTheCat deleted the blurhash branch August 6, 2022 07:34
NovaAndrom3da pushed a commit to NovaAndrom3da/neocinny that referenced this pull request Nov 23, 2023
* Generate blurhash client side

* Make blurhash generation faster

* Simple blurhash display support

* Make image display simpler

* Support non square images

* Don't attach video blurhash to thumbnail

* Add video display support

* Ignore alt tag missing warning

Co-authored-by: Ajay Bura <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants