Popularity
3.8
Growing
Activity
4.1
Declining
54
4
14
Programming language: Go
License: GNU General Public License v3.0 only
Tags:
Files
Latest version: v1.3.2
go-exiftool alternatives and similar packages
Based on the "Files" category.
Alternatively, view go-exiftool alternatives based on common mentions on social networks and blogs.
-
vfs
A pluggable, extensible, and opinionated set of filesystem functionality for Go across a number of filesystem types such as os, S3, and GCS. -
gut/yos
Simple and reliable package for file operations like copy/move/diff/list on files, directories and symbolic links. -
fileconversion
A Go library to convert various file formats to plaintext and provide related functions -
go-staticfiles
Collects assets (css, js, images...) from a different locations, tags file names with a hash for easy versioning and aggressive caching.
Scout APM: A developer's best friend. Try free for 14-days
Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
Sponsored
scoutapm.com
Do you think we are missing an alternative of go-exiftool or a related project?
Popular Comparisons
README
go-exiftool
go-exiftool is a golang library that wraps ExifTool.
ExifTool's purpose is to extract as much metadata as possible (EXIF, IPTC, XMP, GPS, ...) from a lots of differents file types (Office documents, pictures, movies, PDF, ...).
go-exiftool uses ExifTool's stay_open
feature to optimize performance.
Requirements
go-exiftool needs ExifTool to be installed.
- On Debian :
sudo apt-get install exiftool
Usage
et, err := exiftool.NewExiftool()
if err != nil {
fmt.Printf("Error when intializing: %v\n", err)
return
}
defer et.Close()
fileInfos := et.ExtractMetadata("testdata/20190404_131804.jpg")
for _, fileInfo := range fileInfos {
if fileInfo.Err != nil {
fmt.Printf("Error concerning %v: %v\n", fileInfo.File, fileInfo.Err)
continue
}
for k, v := range fileInfo.Fields {
fmt.Printf("[%v] %v\n", k, v)
}
}
Output :
[FOV] 69.4 deg
[Orientation] Rotate 90 CW
[ColorSpace] sRGB
[Compression] JPEG (old-style)
[YCbCrSubSampling] YCbCr4:2:2 (2 1)
[Aperture] 1.7
[ColorComponents] 3
[SubSecCreateDate] 2019:04:04 13:18:03.0937
[FileSize] 26 kB
[FileAccessDate] 2019:05:17 22:44:26+02:00
[DateTimeOriginal] 2019:04:04 13:18:03
[CreateDate] 2019:04:04 13:18:03
(...)
Changelog
- v1.1.0 : initial release
- v1.1.1
- v1.1.3
- add Mac & Windows support (thank to @PROger4ever)
- increase errors readability (thank to @PROger4ever)
- v1.2.0
- add stdout and stderr buffer configuration capabilities (thank to @asannikov)
- v1.3.0
- Add functionnal option to set ExifTool's
-charset
parameter (thank to @PROger4ever)
- Add functionnal option to set ExifTool's
- v1.3.1
- v1.3.2
- add Freebsd support (thank to @ghyman1)