mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-07-02 07:06:44 +02:00
glide has its own requirements. My previous workaround caused me some code checkin errors. Need to fix this.
18 lines
233 B
Go
18 lines
233 B
Go
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)
|
|
|
|
}
|