mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 16:35:52 -05:00
NIP-29: add to NIPs list, improve preamble phrasing
This commit is contained in:
parent
1ac28115ee
commit
716234149a
14
29.md
14
29.md
|
@ -1,13 +1,12 @@
|
||||||
NIP029
|
NIP-29
|
||||||
======
|
======
|
||||||
|
|
||||||
imeta
|
Media Attachments
|
||||||
--------------
|
-----------------
|
||||||
|
|
||||||
`imeta` is a tag for adding media attachments to events. `imeta` tags MUST match URLs
|
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.
|
||||||
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
|
`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.
|
||||||
a better experience when loading images.
|
|
||||||
|
|
||||||
The `imeta` tag is variadic, and each entry is a space-delimited key/value pair.
|
The `imeta` tag is variadic, and each entry is a space-delimited key/value pair.
|
||||||
Each `imeta` tag MUST have a `url`, and at least one other field. `imeta` may include
|
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
|
||||||
[
|
[
|
||||||
"imeta",
|
"imeta",
|
||||||
"url https://nostr.build/i/my-image.jpg",
|
"url https://nostr.build/i/my-image.jpg",
|
||||||
|
"m image/jpeg",
|
||||||
"blurhash eVF$^OI:${M{o#*0-nNFxakD-?xVM}WEWB%iNKxvR-oetmo#R-aen$",
|
"blurhash eVF$^OI:${M{o#*0-nNFxakD-?xVM}WEWB%iNKxvR-oetmo#R-aen$",
|
||||||
"dim 3024x4032",
|
"dim 3024x4032",
|
||||||
"alt A scenic photo overlooking the coast of Costa Rica",
|
"alt A scenic photo overlooking the coast of Costa Rica",
|
||||||
|
|
|
@ -44,6 +44,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
|
||||||
- [NIP-26: Delegated Event Signing](26.md)
|
- [NIP-26: Delegated Event Signing](26.md)
|
||||||
- [NIP-27: Text Note References](27.md)
|
- [NIP-27: Text Note References](27.md)
|
||||||
- [NIP-28: Public Chat](28.md)
|
- [NIP-28: Public Chat](28.md)
|
||||||
|
- [NIP-29: Media Attachments](29.md)
|
||||||
- [NIP-30: Custom Emoji](30.md)
|
- [NIP-30: Custom Emoji](30.md)
|
||||||
- [NIP-31: Dealing with Unknown Events](31.md)
|
- [NIP-31: Dealing with Unknown Events](31.md)
|
||||||
- [NIP-32: Labeling](32.md)
|
- [NIP-32: Labeling](32.md)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user