From 47c26818d6cd1545540e44d3475278a6a4296a77 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Tue, 30 Jul 2024 09:29:32 +0000 Subject: [chore] add some more slice related utility functions + remove duplicated functions (#3149) --- internal/media/processingmedia.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'internal/media') 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) -- cgit v1.3