Skip to content
No description or website provided.
Find file
Pull request Compare This branch is 125 commits behind rwcarlsen:go1.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Provides decoding of basic exif and tiff encoded data. Still in alpha - no garuntees. Suggestions/pull requests welcome. Funcionality is split into two packages - "exif" and "tiff" The exif package depends on the tiff package. Documentation can be found at

To install, in a terminal type:

go get

Or if you just want the tiff package:

go get

Example usage:

package main

import (

func main() {
  fname := "sample1.jpg"

  f, err := os.Open(fname)
  if err != nil {

  x, err := exif.Decode(f)
    if err != nil {

  camMake := x.Get("Make").StringVal()
  camModel := x.Get("Model").StringVal()
  date := x.Get("DateTimeOriginal").StringVal()
  numer, denom := x.Get("FocalLength").Rat2(0) // retrieve first (only) rat. value

  fmt.Println(camMake, camModel, date, numer, denom)
Something went wrong with that request. Please try again.