mirror of
https://github.com/immich-app/immich.git
synced 2026-03-11 12:47:36 +03:00
feat(server): enhanced thumbnails generation code (#2147)
* Add size parameter to extractVideoThumbnail * Ensure minimum dimension of webp thumbnail
This commit is contained in:
@@ -114,6 +114,7 @@ describe(MediaService.name, () => {
|
||||
expect(mediaMock.extractVideoThumbnail).toHaveBeenCalledWith(
|
||||
'/original/path.ext',
|
||||
'upload/thumbs/user-id/asset-id.jpeg',
|
||||
1440,
|
||||
);
|
||||
expect(assetMock.save).toHaveBeenCalledWith({
|
||||
id: 'asset-id',
|
||||
|
||||
Reference in New Issue
Block a user