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

import (
	"io/ioutil"
	"testing"
)

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

	dat, _ := ioutil.ReadFile(fname)

	fixed_data := FixJpgOrientation(dat)

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

}