mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-02 16:39:16 +08:00
21 lines
265 B
Go
21 lines
265 B
Go
|
package images
|
||
|
|
||
|
import (
|
||
|
"io/ioutil"
|
||
|
"os"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestXYZ(t *testing.T) {
|
||
|
fname := "sample1.jpg"
|
||
|
|
||
|
dat, _ := ioutil.ReadFile(fname)
|
||
|
|
||
|
fixed_data := FixJpgOrientation(dat)
|
||
|
|
||
|
ioutil.WriteFile("fixed1.jpg", fixed_data, 0644)
|
||
|
|
||
|
os.Remove("fixed1.jpg")
|
||
|
|
||
|
}
|