{"id":13412802,"url":"https://github.com/barasher/go-exiftool","last_synced_at":"2026-01-12T13:51:54.675Z","repository":{"id":37432537,"uuid":"186301368","full_name":"barasher/go-exiftool","owner":"barasher","description":"Golang wrapper for Exiftool : extract as much metadata as possible (EXIF, ...) from files (pictures, pdf, office documents, ...)","archived":false,"fork":false,"pushed_at":"2025-08-03T21:07:11.000Z","size":207,"stargazers_count":271,"open_issues_count":11,"forks_count":47,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-08-14T04:01:56.272Z","etag":null,"topics":["exif","exiftool","golang","iptc","wrapper-api"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/barasher.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-12T20:34:09.000Z","updated_at":"2025-08-09T16:48:49.000Z","dependencies_parsed_at":"2024-01-08T15:02:29.267Z","dependency_job_id":"c2419741-2eae-47f5-8d32-d1250d5a9008","html_url":"https://github.com/barasher/go-exiftool","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/barasher/go-exiftool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barasher%2Fgo-exiftool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barasher%2Fgo-exiftool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barasher%2Fgo-exiftool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barasher%2Fgo-exiftool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barasher","download_url":"https://codeload.github.com/barasher/go-exiftool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barasher%2Fgo-exiftool/sbom","scorecard":{"id":225628,"data":{"date":"2025-08-11","repo":{"name":"github.com/barasher/go-exiftool","commit":"f4f902ff98728c21cd0067725f1313bf79006719"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":2,"reason":"Found 7/25 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/barasher/go-exiftool/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/barasher/go-exiftool/ci.yml/master?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/ci.yml:25","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 goCommand dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 20 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T03:45:02.710Z","repository_id":37432537,"created_at":"2025-08-17T03:45:02.710Z","updated_at":"2025-08-17T03:45:02.710Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28339660,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["exif","exiftool","golang","iptc","wrapper-api"],"created_at":"2024-07-30T20:01:29.398Z","updated_at":"2026-01-12T13:51:54.645Z","avatar_url":"https://github.com/barasher.png","language":"Go","readme":"# go-exiftool\n\n[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go)\n[![Build Status](https://github.com/barasher/go-exiftool/workflows/go-exiftool-ci/badge.svg)](https://github.com/barasher/go-exiftool/actions)\n[![go report card](https://goreportcard.com/badge/github.com/barasher/go-exiftool \"go report card\")](https://goreportcard.com/report/github.com/barasher/go-exiftool)\n[![GoDoc](https://godoc.org/github.com/barasher/go-exiftool?status.svg)](https://godoc.org/github.com/barasher/go-exiftool)\n[![codecov](https://codecov.io/gh/barasher/go-exiftool/branch/master/graph/badge.svg)](https://codecov.io/gh/barasher/go-exiftool)\n\n**go-exiftool** is a golang library that wraps [ExifTool](https://www.sno.phy.queensu.ca/~phil/exiftool/).\n\n[ExifTool](https://www.sno.phy.queensu.ca/~phil/exiftool/)'s purpose is to extract and update as much metadata as possible (EXIF, IPTC, XMP, GPS, ...) from [a lots of differents file types](https://www.sno.phy.queensu.ca/~phil/exiftool/#supported) (Office documents, pictures, movies, PDF, ...).\n\n**go-exiftool** uses [ExifTool](https://www.sno.phy.queensu.ca/~phil/exiftool/)'s *`stay_open`* feature to [optimize performance](https://www.sno.phy.queensu.ca/~phil/exiftool/#performance).\n\n## Requirements\n\n**go-exiftool** needs [ExifTool](https://www.sno.phy.queensu.ca/~phil/exiftool/) to be installed.\n\n- On Debian : `sudo apt-get install exiftool`\n\nBy default, `go-exiftool` binary will look for `exiftool` binary in $PATH, but another location can be specified (see `SetExiftoolBinaryPath` functional option).\n\n## Usage\n\n### Metadata extraction\n\n```go\net, err := exiftool.NewExiftool()\nif err != nil {\n    fmt.Printf(\"Error when intializing: %v\\n\", err)\n    return\n}\ndefer et.Close()\n\nfileInfos := et.ExtractMetadata(\"testdata/20190404_131804.jpg\")\n\nfor _, fileInfo := range fileInfos {\n    if fileInfo.Err != nil {\n        fmt.Printf(\"Error concerning %v: %v\\n\", fileInfo.File, fileInfo.Err)\n        continue\n    }\n\n    for k, v := range fileInfo.Fields {\n        fmt.Printf(\"[%v] %v\\n\", k, v)\n    }\n}\n```\n\nOutput :\n\n```\n[FOV] 69.4 deg\n[Orientation] Rotate 90 CW\n[ColorSpace] sRGB\n[Compression] JPEG (old-style)\n[YCbCrSubSampling] YCbCr4:2:2 (2 1)\n[Aperture] 1.7\n[ColorComponents] 3\n[SubSecCreateDate] 2019:04:04 13:18:03.0937\n[FileSize] 26 kB\n[FileAccessDate] 2019:05:17 22:44:26+02:00\n[DateTimeOriginal] 2019:04:04 13:18:03\n[CreateDate] 2019:04:04 13:18:03\n(...)\n```\n\n### Metadata update\n\nSee [example function ExampleExiftool_Write in exiftool_sample_test.go](exiftool_sample_test.go)\n\n## Changelog\n\n- v1.1.0 : initial release\n- [v1.1.1](https://github.com/barasher/go-exiftool/milestone/2)\n  - [add typed getters for filemetadata fields](https://github.com/barasher/go-exiftool/issues/2)\n- [v1.1.3](https://github.com/barasher/go-exiftool/milestone/3)\n  - [add Mac \u0026 Windows support](https://github.com/barasher/go-exiftool/pull/7) (thanks to @PROger4ever)\n  - [increase errors readability](https://github.com/barasher/go-exiftool/pull/8) (thanks to @PROger4ever)\n- [v1.2.0](https://github.com/barasher/go-exiftool/milestone/4)\n  - [add stdout and stderr buffer configuration capabilities](https://github.com/barasher/go-exiftool/issues/6) (thank to @asannikov)\n- [v1.3.0](https://github.com/barasher/go-exiftool/milestone/5)\n  - Add functionnal option to set [ExifTool](https://www.sno.phy.queensu.ca/~phil/exiftool/)'s `-charset` parameter (thank to @PROger4ever)\n- [v1.3.1](https://github.com/barasher/go-exiftool/milestone/6)\n  - [fix line separator on macOS](https://github.com/barasher/go-exiftool/issues/16)\n- [v1.3.2](https://github.com/barasher/go-exiftool/milestone/7)\n  - [add Freebsd support](https://github.com/barasher/go-exiftool/pull/21) (thanks to @ghyman1)\n- [v1.4.0](https://github.com/barasher/go-exiftool/milestone/8)\n  - [\"NoPrintConversion\" functional option](https://github.com/barasher/go-exiftool/pull/24) (thanks to [Kjeldgaard](https://github.com/Kjeldgaard))\n- [v1.5.0](https://github.com/barasher/go-exiftool/milestone/9)\n  - \"ExtractEmbedded\" functional option\n- [v1.6.0](https://github.com/barasher/go-exiftool/milestone/10)\n  - \"ExtractAllBinaryMetadata\" functional option\n- [v1.6.1](https://github.com/barasher/go-exiftool/milestone/11)\n  - \"SetExiftoolBinaryPath\" functional option : specify where to find exiftool binary (default : $path)\n- [v1.6.2](https://github.com/barasher/go-exiftool/milestone/12)\n  - Several improvements (thanks to [Dale Hui](https://github.com/dhui))\n- [v1.7.0](https://github.com/barasher/go-exiftool/milestone/13)\n  - Add metadata writing capabilities (thanks to [Dale Hui](https://github.com/dhui))\n- [v1.8.0](https://github.com/barasher/go-exiftool/milestone/14)\n  - [Fix a bug](https://github.com/barasher/go-exiftool/issues/52) that was blocking `go-exiftool` when a folder was provided. Folder metadata extraction will now return a new sentinel error (ErrNotFile).\n  - Add a new sentinel error (`ErrBufferTooSmall`) that is returned when `go-exiftool`'s buffer isn't big enough for a specifi file (countermeasure: initialize `go-exiftool` with the `Buffer` option)\n  - [New option to specify a date format (`DateFormat`)](https://github.com/barasher/go-exiftool/pull/60) (thanks to [Andy Gorman](https://github.com/agorman))\n  - [New option to output format for GPS coordinates (`CoordFormat`)](https://github.com/barasher/go-exiftool/pull/60) (thanks to [Andy Gorman](https://github.com/agorman))\n- [v1.9.0](https://github.com/barasher/go-exiftool/milestone/15)\n  - [New option to specify `-api` parameter to Exiftool](https://github.com/barasher/go-exiftool/issues/59) (thanks to [Blesmol](https://github.com/Blesmol))\n- [v1.10.0](https://github.com/barasher/go-exiftool/milestone/16)\n  - [New option to prefix metadata keys with group names (specifies `-G` parameter to Exiftool)](https://github.com/barasher/go-exiftool/issues/67) (thanks to [Andy Gorman](https://github.com/agorman))\n\n","funding_links":[],"categories":["File Handling","文件处理","Relational Databases","Files","文件处理`处理文件和文件系统操作的库`"],"sub_categories":["Search and Analytic Databases","SQL 查询语句构建库","Advanced Console UIs","检索及分析资料库"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarasher%2Fgo-exiftool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarasher%2Fgo-exiftool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarasher%2Fgo-exiftool/lists"}