mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-10 16:33:11 -06:00
mediaapi/thumbnailer: Store thumbnail according to requested size
This commit is contained in:
parent
d6c3b171db
commit
0e0fe28b22
|
|
@ -151,8 +151,8 @@ func createThumbnail(src types.Path, buffer []byte, config types.ThumbnailSize,
|
|||
FileSizeBytes: types.FileSizeBytes(stat.Size()),
|
||||
},
|
||||
ThumbnailSize: types.ThumbnailSize{
|
||||
Width: width,
|
||||
Height: height,
|
||||
Width: config.Width,
|
||||
Height: config.Height,
|
||||
ResizeMethod: config.ResizeMethod,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -185,8 +185,8 @@ func createThumbnail(src types.Path, img image.Image, config types.ThumbnailSize
|
|||
FileSizeBytes: types.FileSizeBytes(stat.Size()),
|
||||
},
|
||||
ThumbnailSize: types.ThumbnailSize{
|
||||
Width: width,
|
||||
Height: height,
|
||||
Width: config.Width,
|
||||
Height: config.Height,
|
||||
ResizeMethod: config.ResizeMethod,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue