summaryrefslogtreecommitdiff
path: root/internal/media/processimage.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-09-23 11:13:11 +0200
committerLibravatar GitHub <noreply@github.com>2021-09-23 11:13:11 +0200
commitddfd83d0fbdf4d6259bda25a57776f8341888b49 (patch)
tree4a2fa5ca3338962b4c7fdcc1710c35e9a76ae863 /internal/media/processimage.go
parentremove hardcoded friendica user agent block (#239) (diff)
downloadgotosocial-ddfd83d0fbdf4d6259bda25a57776f8341888b49.tar.xz
update media processing (#244)
Diffstat (limited to 'internal/media/processimage.go')
-rw-r--r--internal/media/processimage.go4
1 files changed, 2 insertions, 2 deletions
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,