Skip to content

Exif44 is a Go library for encoding and decoding Exif metadata in JPEG and TIFF files.

License

Notifications You must be signed in to change notification settings

garyhouston/exif44

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exif44

exif44 is a Go library for encoding and decoding Exif data in TIFF and JPEG files. It can be used to extract or edit metadata, but doesn't include functionality for processing images.

For documentation, see https://godoc.org/github.com/garyhouston/exif44.

Notes and limitations

This library is still under construction and may change at any moment without backwards compatibility.

Since Exif stores metadata in TIFF format, this library makes use of the tiff66 library. The notes that apply to that library are relevant here. The jpegsegs library can be used to decode a JPEG file into segments.

The exif44print program prints the IFDs (image file directories) and fields, either from a TIFF file or from the Exif segment of a JPEG file.

The exif44repack program decodes a TIFF file, or the Exif segment of a JPEG file, re-encodes it and writes it to a new file.

The exif44addloc program adds location coordinates (GPS) to a JPEG or TIFF file. It's run as 'exif44addloc latitude longitude file-in file-out', with the coordinates expressed as decimal numbers.

Metadata in JPEG files can also be stored in other formats such as XMP, which is not supported by this library. Both formats can be present in the same file.

As per tiff66, not all maker note formats found in Exif can be currently decoded. In some cases they contain pointers which will be broken if a file is rewritten by this library. The high-level APIs, as used by the example programs above, will return an error if unsupported formats are detected.

This library makes no provision for modification of data in multiple threads. Mutexes etc., should be used as required.

'44' is an arbitrary number to distinguish this library from all the other Exif libraries.

About

Exif44 is a Go library for encoding and decoding Exif metadata in JPEG and TIFF files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages