From 05d3f198c61c2732ccf15ba8005299365dabb8e0 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 28 Apr 2026 21:23:12 -0300 Subject: mention optional thumbhash alongside blurhash on nip17 and nip68. --- 17.md | 1 + 68.md | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/17.md b/17.md index 3ccdc77..6e44b0d 100644 --- a/17.md +++ b/17.md @@ -80,6 +80,7 @@ Kind `15` is used for sending encrypted file event messages: - `ox` containing the SHA-256 hexencoded string of the file before encryption. - `size` (optional) size of the encrypted file in bytes - `dim` (optional) size in pixels in the form `x` +- `thumbhash`(optional) the [thumbhash](https://evanw.github.io/thumbhash/) to show while the client is loading the file - `blurhash`(optional) the [blurhash](https://github.com/woltapp/blurhash) to show while the client is loading the file - `thumb` (optional) URL of thumbnail with same aspect ratio (encrypted with the same key, nonce) - `fallback` (optional) zero or more fallback file sources in case `url` fails (encrypted with the same key, nonce) diff --git a/68.md b/68.md index 918378a..89b9589 100644 --- a/68.md +++ b/68.md @@ -31,6 +31,7 @@ They may contain multiple images to be displayed as a single post. "imeta", "url https://nostr.build/i/my-image.jpg", "m image/jpeg", + "thumbhash zOcFFIIKmXdCinaXaHcmcHUFSA==", "blurhash eVF$^OI:${M{o#*0-nNFxakD-?xVM}WEWB%iNKxvR-oetmo#R-aen$", "dim 3024x4032", "alt A scenic photo overlooking the coast of Costa Rica", @@ -42,7 +43,7 @@ They may contain multiple images to be displayed as a single post. "imeta", "url https://nostr.build/i/my-image2.jpg", "m image/jpeg", - "blurhash eVF$^OI:${M{o#*0-nNFxakD-?xVM}WEWB%iNKxvR-oetmo#R-aen$", + "thumbhash zOcFFIIKmXgzmWaXWIcmcFQEGA", "dim 3024x4032", "alt Another scenic photo overlooking the coast of Costa Rica", "x ", -- cgit v1.2.3