An open API service indexing awesome lists of open source software.

https://github.com/xis/go-dexif

remove exif data from image file
https://github.com/xis/go-dexif

delete dexif exif fast go go-dexif golang image jpg remove

Last synced: about 2 months ago
JSON representation

remove exif data from image file

Awesome Lists containing this project

README

          


go-dexif



[![forthebadge](https://forthebadge.com/images/badges/check-it-out.svg)](https://forthebadge.com)

removes exif, not safe currently, have problems with images that contains orientation data, supports only jpeg.

# install
```bash
go get github.com/xis/go-dexif
```

# usage
```go
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)
}
}
```