Skip to content

hmage/goheif

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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?

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%