hmage / goheif

HEIF container parser in pure Go

Home Page:https://godoc.org/github.com/hmage/goheif

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HEIF container parser in pure Go

GoDoc badge

This is a fork of jdeng/goheif but without C code — only for parsing HEIF container and extracting EXIF.

Install

  • Tested

    • Mac OS X (High Sierra)
    • Linux (Ubuntu 16.04 / GCC 5.4)
    • Windows 7 64bit with TDM-GCC 32 (GCC 5.1) and golang 1.12 windows/386
  • Code Sample

func main() {
	flag.Parse()
	...
  
	fin := flag.Arg(0)
	fi, err := os.Open(fin)
	if err != nil {
		log.Fatal(err)
	}
	defer fi.Close()

	exif, err := goheif.ExtractExif(fi)
	if err != nil {
		log.Printf("Warning: no EXIF from %s: %v\n", fin, err)
	}

	log.Printf("got exif %q", exif)
}

What is done

License

  • heif subdir is in Apache license

  • goheif.go is in MIT license

Credits

TODO

  • Upstream the changes to heif?

About

HEIF container parser in pure Go

https://godoc.org/github.com/hmage/goheif


Languages

Language:Go 100.0%