exif

package
v0.0.0-...-21979d2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExifModule

type ExifModule struct {
}

func New

func New() ExifModule

func (ExifModule) AdjustOrientation

func (e ExifModule) AdjustOrientation(img image.Image, exifOrientation int) image.Image

* AdjustOrientation * utilize opencv to correct image rotation from exif data * for more information on exif orientation try https://www.impulseadventure.com/photo/exif-orientation.html

func (ExifModule) ExtractExifFromImageBytes

func (e ExifModule) ExtractExifFromImageBytes(source []byte) (result ImageExif, err error)

extract exif from bytes content of an image

type ImageExif

type ImageExif struct {
	ApertureValue           []string `json:"ApertureValue,omitempty"`
	BrightnessValue         []string `json:"BrightnessValue,omitempty"`         //: "209/100"
	ColorSpace              []int    `json:"ColorSpace,omitempty"`              //: 1
	DateTime                string   `json:"DateTime,omitempty"`                //: "2018:11:23 15:09:33"
	DateTimeOriginal        string   `json:"DateTimeOriginal,omitempty"`        //: "2018:11:23 15:09:33"
	DateTimeDigitizedstring string   `json:"DateTimeDigitizedstring,omitempty"` //: "2018:11:23 15:09:33"
	ExifVersion             string   `json:"ExifVersion,omitempty"`             //: "0220"
	ExposureProgram         []int    `json:"ExposureProgram,omitempty"`         //: 2
	ExposureMode            []int    `json:"ExposureMode,omitempty"`            //: 0
	ExposureBiasValue       []string `json:"ExposureBiasValue,omitempty"`       //: "0/10"
	Flash                   []int    `json:"Flash,omitempty"`                   // :0
	ISOSpeedRatings         []int    `json:"ISOSpeedRatings ,omitempty"`        //: 100
	ImageUniqueID           string   `json:"ImageUniqueID,omitempty"`           //: "W08LLKF00AM"
	Make                    string   `json:"Make,omitempty"`                    //: "samsung"
	MeteringMode            []int    `json:"MeteringMode,omitempty"`            //: 2
	Model                   string   `json:"Model,omitempty"`                   //: "SM-N960F"
	SceneCaptureType        []int    `json:"SceneCaptureType,omitempty"`        //: 2
	Orientation             []int    `json:"Orientation,omitempty"`             //: 8
	PixelXDimension         []int    `json:"PixelXDimension,omitempty"`         //: 3264
	PixelYDimension         []int    `json:"PixelYDimension,omitempty"`         //: 2448
	ResolutionUnit          []int    `json:"ResolutionUnit,omitempty"`          //: 2
	Software                string   `json:"Software,omitempty"`                //: "N960FXXS2ARJ4"
	WhiteBalance            []int    `json:"WhiteBalance,omitempty"`            //: 0 (Auto),  1(Manual)
}

Jump to

Keyboard shortcuts

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