All Projects → xor-gate → goexif2

xor-gate / goexif2

Licence: BSD-2-Clause license
MAINTAINER WANTED -- Decode embedded EXIF meta data from image files written in Pure Golang

Projects that are alternatives of or similar to goexif2

pigallery
PiGallery: AI-powered Self-hosted Secure Multi-user Image Gallery and Detailed Image analysis using Machine Learning, EXIF Parsing and Geo Tagging
Stars: ✭ 35 (+0%)
Mutual labels:  exif, image-classification, image-analysis, image-metadata
Exifr
📷 The fastest and most versatile JS EXIF reading library.
Stars: ✭ 448 (+1180%)
Mutual labels:  metadata, exif
Exifer
A lightweight Exif meta-data decipher.
Stars: ✭ 290 (+728.57%)
Mutual labels:  metadata, exif
Exiftool
ExifTool meta information reader/writer
Stars: ✭ 832 (+2277.14%)
Mutual labels:  metadata, exif
pyexiv2
Read/Write metadata(including EXIF, IPTC, XMP), comment and ICC Profile embedded in digital images.
Stars: ✭ 120 (+242.86%)
Mutual labels:  metadata, exif
ForensicsTools
A list of free and open forensics analysis tools and other resources
Stars: ✭ 392 (+1020%)
Mutual labels:  metadata, image-analysis
Exif Py
Easy to use Python module to extract Exif metadata from digital image files.
Stars: ✭ 561 (+1502.86%)
Mutual labels:  metadata, exif
Resnetcam Keras
Keras implementation of a ResNet-CAM model
Stars: ✭ 269 (+668.57%)
Mutual labels:  image-classification, image-analysis
Metadata Extractor
Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files
Stars: ✭ 1,972 (+5534.29%)
Mutual labels:  metadata, exif
Exiftool Vendored.js
Fast, cross-platform Node.js access to ExifTool
Stars: ✭ 200 (+471.43%)
Mutual labels:  metadata, exif
Forensic Tools
A collection of tools for forensic analysis
Stars: ✭ 204 (+482.86%)
Mutual labels:  metadata, exif
Pel
PHP Exif Library - library for reading and writing Exif headers in JPEG and TIFF files using PHP.
Stars: ✭ 232 (+562.86%)
Mutual labels:  exif, image-analysis
iptcinfo3
iptcinfo working for python 3 finally do pip3 install iptcinfo3
Stars: ✭ 37 (+5.71%)
Mutual labels:  metadata, exif
go-xmp
A native Go SDK for the Extensible Metadata Platform (XMP)
Stars: ✭ 36 (+2.86%)
Mutual labels:  metadata, exif
Orange3 Imageanalytics
🍊 🎑 Orange3 add-on for dealing with image related tasks
Stars: ✭ 24 (-31.43%)
Mutual labels:  image-classification, image-analysis
Metadata Extractor Dotnet
Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files
Stars: ✭ 518 (+1380%)
Mutual labels:  metadata, exif
deforestation
A machine learning exercise, using KNN to classify deforested areas
Stars: ✭ 26 (-25.71%)
Mutual labels:  image-classification, image-analysis
Xpiks
Cross-Platform Image Keywording Software for microstock photographers and illustrators
Stars: ✭ 81 (+131.43%)
Mutual labels:  metadata, exif
rexiv2
Rust library for read/write access to media-file metadata (Exif, XMP, and IPTC)
Stars: ✭ 64 (+82.86%)
Mutual labels:  metadata, exif
exiftool-json-db
Maintain a JSON database of photos and videos with their metadata
Stars: ✭ 18 (-48.57%)
Mutual labels:  metadata, exif

goexif2

License Godoc ReportCard Build

This Golang package provides decoding of basic exif and tiff encoded data. This project is a fork of rwcarlsen/goexif with many pull requests and patches integrated.

NOTICE

I'm not developing goexif2 any further. This project was a fork of rwcarlsen/goexif which development has continued since then. The projects have been diverged and I will keep this for people using it in their applications. For new applications you could consider using the original package or search for your package of choice using pkg.go.dev.

Installation

To install the exif extraction cli tool, in a terminal type:

go install github.com/xor-gate/goexif2/cmd/goexif2
goexif2 <file>.jpg

Functionality is split into two packages - "exif" and "tiff" The exif package depends on the tiff package.

go get github.com/xor-gate/goexif2/exif
go get github.com/xor-gate/goexif2/tiff

Example

package main

import (
	"fmt"
	"log"
	"os"

	"github.com/xor-gate/goexif2/exif"
	"github.com/xor-gate/goexif2/mknote"
)

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

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

	// Optionally register camera makenote data parsing - currently Nikon and
	// Canon are supported.
	exif.RegisterParsers(mknote.All...)

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

	camModel, _ := x.Get(exif.Model) // normally, don't ignore errors!
	fmt.Println(camModel.StringVal())

	focal, _ := x.Get(exif.FocalLength)
	numer, denom, _ := focal.Rat2(0) // retrieve first (only) rat. value
	fmt.Printf("%v/%v", numer, denom)

	// Two convenience functions exist for date/time taken and GPS coords:
	tm, _ := x.DateTime()
	fmt.Println("Taken: ", tm)

	lat, long, _ := x.LatLong()
	fmt.Println("lat, long: ", lat, ", ", long)
}

License

2-Clause BSD

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].