diff options
author | 2024-07-28 19:10:41 +0000 | |
---|---|---|
committer | 2024-07-28 21:10:41 +0200 | |
commit | 368c97f0f85f243796a0407960dc5a2ccad24bab (patch) | |
tree | 04f3c9de78f2c814249cec7316b49fd073f69944 /internal/media/manager_test.go | |
parent | [bugfix] moves file rename to earlier in media pipeline so ffmpeg calls ALWAY... (diff) | |
download | gotosocial-368c97f0f85f243796a0407960dc5a2ccad24bab.tar.xz |
[bugfix] take into account rotation when generating thumbnail (#3147)
* take into account rotation when generating thumbnail, simplify ffprobe output to show only fields we need
* only show rotation side data
* remove unnecessary comment
* fix code comments
* remove debug logging
Diffstat (limited to 'internal/media/manager_test.go')
-rw-r--r-- | internal/media/manager_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/media/manager_test.go b/internal/media/manager_test.go index 26b103908..68de74dd6 100644 --- a/internal/media/manager_test.go +++ b/internal/media/manager_test.go @@ -483,7 +483,7 @@ func (suite *ManagerTestSuite) TestLongerMp4Process() { suite.EqualValues(float32(10), *attachment.FileMeta.Original.Framerate) suite.EqualValues(0xce3a, *attachment.FileMeta.Original.Bitrate) suite.EqualValues(gtsmodel.Small{ - Width: 512, Height: 281, Size: 143872, Aspect: 1.822064, + Width: 512, Height: 281, Size: 143872, Aspect: 1.8181819, }, attachment.FileMeta.Small) suite.Equal("video/mp4", attachment.File.ContentType) suite.Equal("image/webp", attachment.Thumbnail.ContentType) @@ -543,7 +543,7 @@ func (suite *ManagerTestSuite) TestBirdnestMp4Process() { suite.EqualValues(float32(30), *attachment.FileMeta.Original.Framerate) suite.EqualValues(0x11844c, *attachment.FileMeta.Original.Bitrate) suite.EqualValues(gtsmodel.Small{ - Width: 287, Height: 512, Size: 146944, Aspect: 0.5605469, + Width: 287, Height: 512, Size: 146944, Aspect: 0.5611111, }, attachment.FileMeta.Small) suite.Equal("video/mp4", attachment.File.ContentType) suite.Equal("image/webp", attachment.Thumbnail.ContentType) |