fix: use preview size for grid thumbnails to avoid blur on portrait images
This commit is contained in:
@@ -98,7 +98,7 @@ function toPhotoItems(assets: ImmichAsset[], showExif: boolean): PhotoItem[] {
|
|||||||
return {
|
return {
|
||||||
id: a.id,
|
id: a.id,
|
||||||
type: isVideo ? 'video' : 'image',
|
type: isVideo ? 'video' : 'image',
|
||||||
thumbUrl: imageUrl(a.id, 'thumbnail'),
|
thumbUrl: imageUrl(a.id, 'preview'),
|
||||||
previewUrl: imageUrl(a.id, 'preview'),
|
previewUrl: imageUrl(a.id, 'preview'),
|
||||||
originalUrl: imageUrl(a.id, 'original'),
|
originalUrl: imageUrl(a.id, 'original'),
|
||||||
...(isVideo ? { videoUrl: videoUrl(a.id) } : {}),
|
...(isVideo ? { videoUrl: videoUrl(a.id) } : {}),
|
||||||
|
|||||||
Reference in New Issue
Block a user