seaweedfs/go/images/orientation_test.go

18 lines
241 B
Go
Raw Normal View History

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