mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-01-23 02:35:10 +00:00
feat: add gallery view mode
This commit is contained in:
parent
f6e5c6f0de
commit
8888b9f446
3 changed files with 53 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue