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.
19 lines
244 B
19 lines
244 B
package images
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestXYZ(t *testing.T) {
|
|
fname := "sample1.jpg"
|
|
|
|
dat, _ := os.ReadFile(fname)
|
|
|
|
fixed_data := FixJpgOrientation(dat)
|
|
|
|
os.WriteFile("fixed1.jpg", fixed_data, 0644)
|
|
|
|
os.Remove("fixed1.jpg")
|
|
|
|
}
|