Add note about image format

This commit is contained in:
kieran 2025-01-31 10:34:08 +00:00
parent 77e46b1825
commit f856d0067e
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941
1 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,7 @@
`draft` `optional`
To optimize image and video previews servers may implement this endpoint which is used to generate thumbnails.
To optimize image and video previews servers MAY implement this endpoint which is used to generate thumbnails.
## `GET /thumb/{sha256}[.{ext}]`
@ -14,6 +14,8 @@ This is usefull for media browsing and management of media hosted on the server
The returned frame should be any supported `image/*` type with the same aspect ratio as the source material.
Servers MAY use the `.{ext}` in the URL or the `Accept` HTTP request header to determine which image format to generate.
The suggested scaling operation is to fix the width to 512 pixels.
Servers MAY also include the [NIP-94](https://github.com/nostr-protocol/nips/blob/master/94.md) tag `thumb` as indicated in [BUD-08](./08.md)