Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Add blurhash #10630
Blurhash encodes an image as a short string of ASCII characters that can be saved in the database and transmitted via the API. It allows displaying a blurred preview on the clients before the real image file loads. It's also blurred enough that it can be displayed instead of the black box when media is hidden.
Making the hidden media box a little more visually appealing should hopefully help the adult content creators on the network. But also beyond that, being able to show a nice placeholder is especially useful for media that has been uncached and that is being (slowly) reloaded through the media proxy.
It's also potentially useful for federation with servers from which you do not want to store/load media. The short ASCII code is safe to store and display to the end-user, allowing them to make the decision to click-through to the original resource.