mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 03:52:30 -05:00
update media processing (#244)
This commit is contained in:
parent
7e6350b448
commit
ddfd83d0fb
8 changed files with 63 additions and 81 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue