You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
241 B

  1. package images
  2. import (
  3. "io/ioutil"
  4. "testing"
  5. )
  6. func TestXYZ(t *testing.T) {
  7. fname := "sample1.jpg"
  8. dat, _ := ioutil.ReadFile(fname)
  9. fixed_data := FixJpgOrientation(".jpg", dat)
  10. ioutil.WriteFile("fixed1.jpg", fixed_data, 0644)
  11. }