<commit_before>exiftool
======

Go library that simply shells out to `exiftool` and parses some fields.

Install
-----

`exiftool` is required to be in your `$PATH` env var.

```
go get github.com/bdotdub/exiftool
```

Example usage:
------

```go
package main

import (
  "os"
  "log"
  "fmt"

  "github.com/bdotdub/exiftool"
)

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

	exif, err := exiftool.DecodeFileAtPath(path)
	log.Println(exif.DateTimeOriginal)
	log.Println(exif.GPS.Latitude)
	log.Println(exif.GPS.Longitude)
}

Motivation
-------

I've tried a few native Go exif parsers and they have either all been
not robust enough, or have caused weird memory issues. Having used the
very mature `exiftool`, I thought why not just shell out to it ... sooo
here it is.

License
-------

MIT<commit_msg>Whoops - close code block in readme<commit_after>exiftool
======

Go library that simply shells out to `exiftool` and parses some fields.

Install
-----

`exiftool` is required to be in your `$PATH` env var.

```
go get github.com/bdotdub/exiftool
```

Example usage:
------

```go
package main

import (
  "os"
  "log"
  "fmt"

  "github.com/bdotdub/exiftool"
)

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

	exif, err := exiftool.DecodeFileAtPath(path)
	log.Println(exif.DateTimeOriginal)
	log.Println(exif.GPS.Latitude)
	log.Println(exif.GPS.Longitude)
}
```

Motivation
-------

I've tried a few native Go exif parsers and they have either all been
not robust enough, or have caused weird memory issues. Having used the
very mature `exiftool`, I thought why not just shell out to it ... sooo
here it is.

License
-------

MIT
{'fraction_non_alphanumeric': 0.13597033374536466, 'fraction_numerical': 0.0012360939431396785, 'mean_word_length': 3.3875338753387534, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2157119', 'n_tokens_mistral': 602, 'n_tokens_neox': 576, 'n_words': 188}