Revert "remove fixJpgOrientation"

This reverts commit de5ca9b2
This commit is contained in:
李远军
2020-07-10 10:08:36 +08:00
parent e67096656b
commit 6608cb5f43
12 changed files with 267 additions and 16 deletions

View File

@@ -0,0 +1,20 @@
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")
}