upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/29.md
diff options
context:
space:
mode:
Diffstat (limited to '29.md')
-rw-r--r--29.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/29.md b/29.md
index 8c990bb..dafd51c 100644
--- a/29.md
+++ b/29.md
@@ -1,13 +1,12 @@
1NIP029 1NIP-29
2====== 2======
3 3
4imeta 4Media Attachments
5-------------- 5-----------------
6 6
7`imeta` is a tag for adding media attachments to events. `imeta` tags MUST match URLs 7Media attachments (images, videos, and other files) may be added to events by including a URL in the event content, along with a matching `imeta` tag.
8in the event content. Clients may replace imeta URLs with rich previews. `imeta` tags 8
9contain extra information about the media attachment, which clients can use to provide 9`imeta` ("inline metadata") tags add information about media URLs in the event's content. Each `imeta` tag SHOULD match a URL in the event content. Clients may replace imeta URLs with rich previews. `imeta` tags contain extra information about the media attachment, which clients can use to provide a better experience when loading previews.
10a better experience when loading images.
11 10
12The `imeta` tag is variadic, and each entry is a space-delimited key/value pair. 11The `imeta` tag is variadic, and each entry is a space-delimited key/value pair.
13Each `imeta` tag MUST have a `url`, and at least one other field. `imeta` may include 12Each `imeta` tag MUST have a `url`, and at least one other field. `imeta` may include
@@ -23,6 +22,7 @@ any field specified by [NIP 94](./94.md). There SHOULD be only one `imeta` tag p
23 [ 22 [
24 "imeta", 23 "imeta",
25 "url https://nostr.build/i/my-image.jpg", 24 "url https://nostr.build/i/my-image.jpg",
25 "m image/jpeg",
26 "blurhash eVF$^OI:${M{o#*0-nNFxakD-?xVM}WEWB%iNKxvR-oetmo#R-aen$", 26 "blurhash eVF$^OI:${M{o#*0-nNFxakD-?xVM}WEWB%iNKxvR-oetmo#R-aen$",
27 "dim 3024x4032", 27 "dim 3024x4032",
28 "alt A scenic photo overlooking the coast of Costa Rica", 28 "alt A scenic photo overlooking the coast of Costa Rica",