mirror of https://github.com/hzrd149/blossom.git
Add note about image format
This commit is contained in:
parent
77e46b1825
commit
f856d0067e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue