aboutsummaryrefslogtreecommitdiff
path: root/weed/images/orientation_test.go
blob: c90b85a4454e9ab3a461a14561da242f48c79554 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package images

import (
	"github.com/seaweedfs/seaweedfs/weed/util"
	"os"
	"testing"
)

func TestXYZ(t *testing.T) {
	fname := "sample1.jpg"

	dat, _ := os.ReadFile(fname)

	fixed_data := FixJpgOrientation(dat)

	util.WriteFile("fixed1.jpg", fixed_data, 0644)

	os.Remove("fixed1.jpg")

}