exif

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 15 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package exif registers a handler of the EXIF metadata of JPEG images, such as the camera, the exposure, when the photo was taken and where, as the tiff and exif namespaces, which uses libexif, so needs cgo

Index

Constants

View Source
const (
	// The namespaces of the tags (see the exif package)
	TIFFNamespace = exif.TIFFNamespace
	EXIFNamespace = exif.EXIFNamespace

	// GPSPosition is the key of the GPS position of a photo, a geo.LatLong,
	// which replaces the tags of its latitude, longitude and altitude
	GPSPosition = "GPSPosition"
)

Variables

This section is empty.

Functions

func PositionHints added in v1.0.6

func PositionHints(meta []metadata.Metadata) []string

PositionHints returns the hint of an image's place, metadata.HintGeo, when its metadata has a position, such as the GPS position of its EXIF or XMP metadata, or none

func TagsMetadata

func TagsMetadata(tags []*exif.Tag) []metadata.Metadata

TagsMetadata returns the metadata of the EXIF tags, in their order, as libexif formats them, such as "f/2.8", without the spaces cameras pad them with, or tags which are empty: a tag of a single rational is also a number, a date and time is a time with its UTC offset, without the tag of the offset, or none when it's unknown, and the latitude, longitude and altitude are a position, exif:GPSPosition, without their tags. The time the photo was taken, or failing that digitized or the file changed, is dc:date, and the position is dc:coverage.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL