From ddfd83d0fbdf4d6259bda25a57776f8341888b49 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Thu, 23 Sep 2021 11:13:11 +0200 Subject: update media processing (#244) --- internal/media/processimage.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/media/processimage.go') diff --git a/internal/media/processimage.go b/internal/media/processimage.go index 03c820cc5..03bd4eda8 100644 --- a/internal/media/processimage.go +++ b/internal/media/processimage.go @@ -55,7 +55,7 @@ func (mh *mediaHandler) processImageAttachment(data []byte, minAttachment *gtsmo return nil, errors.New("media type unrecognized") } - small, err = deriveThumbnail(clean, contentType, 256, 256) + small, err = deriveThumbnail(clean, contentType, 512, 512) if err != nil { return nil, fmt.Errorf("error deriving thumbnail: %s", err) } @@ -109,7 +109,7 @@ func (mh *mediaHandler) processImageAttachment(data []byte, minAttachment *gtsmo AccountID: minAttachment.AccountID, Description: minAttachment.Description, ScheduledStatusID: minAttachment.ScheduledStatusID, - Blurhash: original.blurhash, + Blurhash: small.blurhash, Processing: 2, File: gtsmodel.File{ Path: originalPath, -- cgit v1.2.3