Skip to content

xis/go-dexif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-dexif

forthebadge

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

install

go get github.com/xis/go-dexif

usage

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)
	}
}