seaweedfs/weed/images/orientation_test.go

21 lines
290 B
Go
Raw Normal View History

package images
import (
2022-02-05 05:32:27 +00:00
"github.com/chrislusf/seaweedfs/weed/util"
"os"
"testing"
)
func TestXYZ(t *testing.T) {
fname := "sample1.jpg"
dat, _ := os.ReadFile(fname)
fixed_data := FixJpgOrientation(dat)
2022-02-05 05:32:27 +00:00
util.WriteFile("fixed1.jpg", fixed_data, 0644)
os.Remove("fixed1.jpg")
}