orientation_test.go 290 B

1234567891011121314151617181920
  1. package images
  2. import (
  3. "github.com/chrislusf/seaweedfs/weed/util"
  4. "os"
  5. "testing"
  6. )
  7. func TestXYZ(t *testing.T) {
  8. fname := "sample1.jpg"
  9. dat, _ := os.ReadFile(fname)
  10. fixed_data := FixJpgOrientation(dat)
  11. util.WriteFile("fixed1.jpg", fixed_data, 0644)
  12. os.Remove("fixed1.jpg")
  13. }