mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-27 04:39:25 +08:00
18 lines
241 B
Go
18 lines
241 B
Go
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)
|
|
|
|
}
|