diff --git a/17.md b/17.md index 900b6dd754..8c92e192ce 100644 --- a/17.md +++ b/17.md @@ -80,7 +80,8 @@ 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` -- `blurhash`(optional) the [blurhash](https://github.com/woltapp/blurhash) to show while the client is loading the file +- `thumbhash` (optional) the [thumbhash](https://evanw.github.io/thumbhash/) to show while the file is being loaded by the client +- `blurhash`(deprecated) the [blurhash](https://github.com/woltapp/blurhash) to show while the file is being loaded by the client - `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/24.md b/24.md index 0094d58d8e..842eaa95bd 100644 --- a/24.md +++ b/24.md @@ -15,6 +15,7 @@ These are extra fields not specified in NIP-01 that may be present in the string - `display_name`: an alternative, bigger name with richer characters than `name`. `name` should always be set regardless of the presence of `display_name` in the metadata. - `website`: a web URL related in any way to the event author. - `banner`: an URL to a wide (~1024x768) picture to be optionally displayed in the background of a profile screen. + - `thumbhash`: the [thumbhash](https://evanw.github.io/thumbhash/) to show while the file is being loaded by the client - `bot`: a boolean to clarify that the content is entirely or partially the result of automation, such as with chatbots or newsfeeds. - `birthday`: an object representing the author's birth date. The format is { "year": number, "month": number, "day": number }. Each field MAY be omitted. diff --git a/68.md b/68.md index 918378a9e8..b816eed68b 100644 --- a/68.md +++ b/68.md @@ -31,7 +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", - "blurhash eVF$^OI:${M{o#*0-nNFxakD-?xVM}WEWB%iNKxvR-oetmo#R-aen$", + "thumbhash mxgOFwJ4iYePiHh6d3eIh3d5OA4G5GAC", "dim 3024x4032", "alt A scenic photo overlooking the coast of Costa Rica", "x ", @@ -42,7 +42,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 mxgOFwJ4iYePiHh6d3eIh3d5OA4G5GAC", "dim 3024x4032", "alt Another scenic photo overlooking the coast of Costa Rica", "x ", diff --git a/92.md b/92.md index d6e9932cc2..0ad14ca0a9 100644 --- a/92.md +++ b/92.md @@ -23,7 +23,7 @@ any field specified by [NIP 94](./94.md). There SHOULD be only one `imeta` tag p "imeta", "url https://nostr.build/i/my-image.jpg", "m image/jpeg", - "blurhash eVF$^OI:${M{o#*0-nNFxakD-?xVM}WEWB%iNKxvR-oetmo#R-aen$", + "thumbhash mxgOFwJ4iYePiHh6d3eIh3d5OA4G5GAC", "dim 3024x4032", "alt A scenic photo overlooking the coast of Costa Rica", "x ", diff --git a/94.md b/94.md index 4cd7c826c3..f1de17d5f8 100644 --- a/94.md +++ b/94.md @@ -20,7 +20,8 @@ This NIP specifies the use of the `1063` event kind, having in `content` a descr * `dim` (optional) size of file in pixels in the form `x` * `magnet` (optional) URI to magnet file * `i` (optional) torrent infohash -* `blurhash`(optional) the [blurhash](https://github.com/woltapp/blurhash) to show while the file is being loaded by the client +* `thumbhash` (optional) the [thumbhash](https://evanw.github.io/thumbhash/) to show while the file is being loaded by the client +* `blurhash` (deprecated) the [blurhash](https://github.com/woltapp/blurhash) to show while the file is being loaded by the client * `thumb` (optional) url of thumbnail with same aspect ratio * `image` (optional) url of preview image with same dimensions * `summary` (optional) text excerpt @@ -40,7 +41,7 @@ This NIP specifies the use of the `1063` event kind, having in `content` a descr ["dim", ], ["magnet", ], ["i", ], - ["blurhash", ], + ["thumbhash", ], ["thumb", , ], ["image", , ], ["summary", ],