fix(imagorvideo): fix image orientation from video exif (#18)

* fix(imagorvideo): orient image before resize

* test: update golden files

* fix(imagorvideo): orient image before resize

* test: update golden files
This commit is contained in:
Adrian Shum 2022-10-08 11:55:31 +08:00 committed by GitHub
parent 466ff3ec35
commit 145b4ce8a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 11 additions and 11 deletions

View file

@ -43,10 +43,10 @@ func TestProcessor(t *testing.T) {
doGoldenTests(t, filepath.Join(testDataDir, "golden/result"), []test{
{name: "mkv", path: "fit-in/100x100/everybody-betray-me.mkv"},
{name: "mkv meta", path: "meta/everybody-betray-me.mkv"},
{name: "mp4", path: "fit-in/100x100/schizo_0.mp4"},
{name: "mp4 90", path: "fit-in/100x100/schizo_90.mp4"},
{name: "mp4 180", path: "fit-in/100x100/schizo_180.mp4"},
{name: "mp4 270", path: "fit-in/100x100/schizo_270.mp4"},
{name: "mp4", path: "200x100/schizo_0.mp4"},
{name: "mp4 orient 90", path: "220x100/schizo_90.mp4"},
{name: "mp4 orient 180", path: "200x100/schizo_180.mp4"},
{name: "mp4 orient 270", path: "200x100/schizo_270.mp4"},
{name: "image", path: "fit-in/100x100/demo.png"},
{name: "corrupted", path: "fit-in/100x100/corrupt/everybody-betray-me.mkv", expectCode: 406},
}, WithDebug(true), WithLogger(zap.NewExample()))