feat: add gallery view mode

This commit is contained in:
Adrian committed 2022-02-10 17:11:24 +01:00
1 parent f6e5c6f0de
commit 8888b9f446
3 files changed
+53 -4

No files matched your search

+2 -2
View File
@@ -129,8 +129,8 @@ func createPreview(imgSvc ImgService, fileCache FileCache,
height = 1080
options = append(options, img.WithMode(img.ResizeModeFit), img.WithQuality(img.QualityMedium))
case previewSize == PreviewSizeThumb:
width = 128
height = 128
width = 256
height = 256
options = append(options, img.WithMode(img.ResizeModeFill), img.WithQuality(img.QualityLow), img.WithFormat(img.FormatJpeg))
default:
return nil, img.ErrUnsupportedFormat