Merge pull request #1975 from matrix-org/rav/thumbnail_dimensions

Make thumbnail dimensions mandatory
rav/fix_jenkins_comments
Richard van der Hoff 5 years ago committed by GitHub
commit de3eb3218e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -202,6 +202,7 @@ paths:
type: integer
x-example: 64
name: width
required: true
description: |-
The *desired* width of the thumbnail. The actual thumbnail may not
match the size specified.
@ -209,6 +210,7 @@ paths:
type: integer
x-example: 64
name: height
required: true
description: |-
The *desired* height of the thumbnail. The actual thumbnail may not
match the size specified.

@ -0,0 +1 @@
Clarify that ``width`` and ``height`` are required parameters on ``/_matrix/media/r0/thumbnail/{serverName}/{mediaId}``. It is somewhat meaningless to request a thumbnail without specifying a desired size, and Synapse has never permitted such requests.
Loading…
Cancel
Save