Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsImage

func IsImage(filename string) bool

Types

type ExifInfo

type ExifInfo struct {
	Datetime  string  `json:"datetime,omitempty"`
	Make      string  `json:"make,omitempty"`
	Model     string  `json:"model,omitempty"`
	LensModel string  `json:"lens_model,omitempty"`
	GPSLat    float64 `json:"gps_lat,omitempty"`
	GPSLng    float64 `json:"gps_lng,omitempty"`
}

type Image

type Image struct {
	Width  int       `json:"width,omitempty"`
	Height int       `json:"height,omitempty"`
	Exif   *ExifInfo `json:"exif,omitempty"`
}

func Parse

func Parse(f io.ReadSeeker, shouldParseExif bool) (*Image, error)

Source Files