mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-11 15:59:06 +08:00
21 lines
290 B
Go
21 lines
290 B
Go
package images
|
|
|
|
import (
|
|
"github.com/chrislusf/seaweedfs/weed/util"
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestXYZ(t *testing.T) {
|
|
fname := "sample1.jpg"
|
|
|
|
dat, _ := os.ReadFile(fname)
|
|
|
|
fixed_data := FixJpgOrientation(dat)
|
|
|
|
util.WriteFile("fixed1.jpg", fixed_data, 0644)
|
|
|
|
os.Remove("fixed1.jpg")
|
|
|
|
}
|