Be explicit about the resize method
Co-authored-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
50f51d373f
commit
ae788e16d5
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ export function getThumbnailURI(
|
|||
throw new Error(`mxc invalid. mxc: ${mxcId}`);
|
||||
}
|
||||
// eslint-disable-next-line max-len
|
||||
return `https://${clientURL}/_matrix/media/r0/thumbnail/${mxcParse.groups.server}/${mxcParse.groups.mediaId}?height=${height}&width=${width}`;
|
||||
return `https://${clientURL}/_matrix/media/r0/thumbnail/${mxcParse.groups.server}/${mxcParse.groups.mediaId}?height=${height}&width=${width}&method=crop`;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue