imginfo

package
v0.0.0-...-b178995 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 9 Imported by: 0

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)

Jump to

Keyboard shortcuts

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