seaweedfs/weed/images/orientation_test.go

21 lines
265 B
Go
Raw Normal View History

2014-05-15 07:30:46 +00:00
package images
import (
"io/ioutil"
2017-01-04 05:28:28 +00:00
"os"
2014-05-15 07:30:46 +00:00
"testing"
)
func TestXYZ(t *testing.T) {
fname := "sample1.jpg"
dat, _ := ioutil.ReadFile(fname)
fixed_data := FixJpgOrientation(dat)
2014-05-15 07:30:46 +00:00
ioutil.WriteFile("fixed1.jpg", fixed_data, 0644)
2017-01-04 05:28:28 +00:00
os.Remove("fixed1.jpg")
2014-05-15 07:30:46 +00:00
}