removes exif, not safe currently, have problems with images that contains orientation data, supports only jpeg.
go get github.com/xis/go-dexif
import (
"log"
"github.com/xis/go-dexif"
)
func main() {
buf, err := ioutil.ReadFile("./image.jpg")
if err != nil {
log.Fatal(err)
}
image := NewImage(buf)
newImage, err := image.Strip()
if err != nil {
log.Fatal(err)
}
}