Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToLatLong ¶
ConvertToLatLong converts GpsInfo into (lat, long) co-ordinates
Types ¶
type GpsDegrees ¶
GpsDegrees Taken from: https://github.com/dsoprea/go-exif/blob/master/v3/gps.go#L21
type GpsInfo ¶
type GpsInfo struct {
Latitude, Longitude GpsDegrees
Altitude int
Timestamp time.Time
}
GpsInfo represents a GPS co-ordinate
type RawExifBytes ¶
type RawExifBytes = []byte
RawExifBytes represents exif section of an image as []byte
type Reader ¶
type Reader interface { GetExifBlob(image RawImageBytes) (rawExif RawExifBytes, err error) GetGPSInfo(exifData RawExifBytes) (*GpsInfo, error) }
Reader parses EXIF data from and image
func NewExifReader ¶
func NewExifReader(parsingLib ReaderType) (Reader, error)
NewExifReader creates a new instance of exif.Reader
type ReaderType ¶
type ReaderType string
ReaderType represents the exif reader library to be used
const ( // GoExifLibrary parse EXIF info using go-exif go module GoExifLibrary ReaderType = "go-exif" )
Click to show internal directories.
Click to hide internal directories.