diff options
Diffstat (limited to '29.md')
| -rw-r--r-- | 29.md | 14 |
1 files changed, 7 insertions, 7 deletions
| @@ -1,13 +1,12 @@ | |||
| 1 | NIP029 | 1 | NIP-29 |
| 2 | ====== | 2 | ====== |
| 3 | 3 | ||
| 4 | imeta | 4 | Media Attachments |
| 5 | -------------- | 5 | ----------------- |
| 6 | 6 | ||
| 7 | `imeta` is a tag for adding media attachments to events. `imeta` tags MUST match URLs | 7 | Media 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. |
| 8 | in the event content. Clients may replace imeta URLs with rich previews. `imeta` tags | 8 | |
| 9 | contain 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. |
| 10 | a better experience when loading images. | ||
| 11 | 10 | ||
| 12 | The `imeta` tag is variadic, and each entry is a space-delimited key/value pair. | 11 | The `imeta` tag is variadic, and each entry is a space-delimited key/value pair. |
| 13 | Each `imeta` tag MUST have a `url`, and at least one other field. `imeta` may include | 12 | Each `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", |