summaryrefslogtreecommitdiff
path: root/internal/media/processingmedia.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/media/processingmedia.go')
-rw-r--r--internal/media/processingmedia.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/internal/media/processingmedia.go b/internal/media/processingmedia.go
index b68d8d680..3da036ac7 100644
--- a/internal/media/processingmedia.go
+++ b/internal/media/processingmedia.go
@@ -218,8 +218,13 @@ func (p *ProcessingMedia) store(ctx context.Context) error {
}
if width > 0 && height > 0 {
- // Determine thumbnail dimensions to use.
- thumbWidth, thumbHeight := thumbSize(width, height, aspect, result.rotation)
+ // Determine thumbnail dimens to use.
+ thumbWidth, thumbHeight := thumbSize(
+ width,
+ height,
+ aspect,
+ result.rotation,
+ )
p.media.FileMeta.Small.Width = thumbWidth
p.media.FileMeta.Small.Height = thumbHeight
p.media.FileMeta.Small.Size = (thumbWidth * thumbHeight)