SplatHash – A lightweight alternative to BlurHash and ThumbHash
https://github.com/junevm/splathash
#HackerNews #SplatHash #BlurHash #ThumbHash #Lightweight #Coding #OpenSource
SplatHash – A lightweight alternative to BlurHash and ThumbHash
https://github.com/junevm/splathash
#HackerNews #SplatHash #BlurHash #ThumbHash #Lightweight #Coding #OpenSource
More progress in setting up my Wordpress as both a gallery and my social presence! Anyone know how to set it up so preview images use a blurhash if a post is marked with a content warning? I've put the entire site under an age check since doing it to individual posts doesn't obscure them in indexes and searches.
Mastodon clients just do their usual blur-and-obscure with anything CW'd, so the ActivityPub feed isn't a problem.
A frustrating combo of "You shouldn't (have to) touch the PHP code" and "Wait you're not coding your own theme in PHP? Are you new here?"
Adding Blurhash Support
Mastodon is where I first learned about “blurhashes,” the blurry image placeholders that show while images are still loading. After I’d recently added support for image attachments to this site’s ActivityPub implementation, I learned that Mastodon instances don’t necessarily generate blurhashes for images sent from other servers.
Я ускорил генерацию blurhash в 3̶6̶ 8̶7̶ 128 раз
Старую собаку новым трюкам не обучишь, вот и я взялся за старое. Blurhash — это компактный способ представления размытой превьюшки изображения в виде ASCII-строки. Разработан финской компанией Wolt (аналог Delivery Club). Давно хотелось внедрить такое к себе в API , чтобы любой клиент мог более плавно и изящно делать загрузку контент на своем сайте. Но сколько я на него смотрел — всегда не давала покоя скорость работы, уж больно медленно и «в лоб» он был написан. Но вот время пришло наконец-то разобраться, что же он так медленно работает.
Dynamically Resize and Optimize WordPress Images with imgproxy
Imgproxy is an open source image processing proxy service. You supply image URLs and processing parameters in the URL. It downloads the image and applies the filters you’ve specified. It can also automatically serve WebP or AVIF images to clients that support those formats.
I started by installing imgproxy on the DigitalOcean App Platform. You can use the […]
#blurhash #imgproxy #WordPress
https://josh.blog/2024/07/dynamically-resize-and-optimize-wordpress-images-with-imgproxy
You can read the colors from a #BlurHash (like Mastodon image placeholders) and create a #SwiftUI MeshGradient from them! SwiftUI's perceptual interpolation makes them look even prettier than the original blurhash renderer.
Thanks @neilsardesai for posting a similar idea
https://mastodon.social/@neilsardesai/112604932142344741
Edit: now on github! https://github.com/daprice/BlurHashViews