mention optional thumbhash alongside blurhash on nip17 and nip68.

This commit is contained in:
fiatjaf
2026-04-28 21:23:12 -03:00
parent 22244f9d26
commit 05d3f198c6
2 changed files with 3 additions and 1 deletions

1
17.md
View File

@@ -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 `<width>x<height>`
- `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)

3
68.md
View File

@@ -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 <sha256 hash as specified in NIP 94>",