exif

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2015 License: BSD-3-Clause Imports: 6 Imported by: 2

Documentation

Overview

Package exif implements ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(reader *Reader)

Read displays exif information about the file

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

Reader is the structure useful for reading exif data

func Open

func Open(name string) (*Reader, error)

Open creates a new reader from the image path given in parameter

func (*Reader) All

func (r *Reader) All() []int

All returns an array of all tags in this reader

func (*Reader) Get

func (r *Reader) Get(tag int) (interface{}, error)

Get returns the value for the corresponding tag. Otherwise returns an error

type Tag

type Tag uint16

Tag is the key attribute for the value

const (
	ProcessingSoftware Tag = iota
	NewSubfileType
	SubfileType
	ImageWidth
	ImageLength
	BitsPerSample
	Compression
	PhotometricInterpretation
	Orientation
	SamplesPerPixel
	PlanarConfiguration
	XResolution
	YResolution
	ResolutionUnit
	DateTime
	ImageDescription
	Make
	Model
	Software
	Artist
	JPEGProc
	JPEGInterchangeFormat
	JPEGInterchangeFormatLength
	JPEGRestartInterval
	JPEGLosslessPredictors
	JPEGPointTransforms
	JPEGQTables
	JPEGDCTables
	JPEGACTables
	YCbCrCoefficients
	YCbCrSubSampling
	YCbCrPositioning
	ReferenceBlackWhite
	XMLPacket
	Copyright
	ExifIFDpointer
	ExifVersion
	FlashpixVersion
	ColorSpace
	ComponentsConfiguration
	CompressedBitsPerPixel
	PixelXDimension
	PixelYDimension
	MakerNote
	UserComment
	RelatedSoundFile
	DateTimeOriginal
	DateTimeDigitized
	SubSecTime
	SubSecTimeOriginal
	SubSecTimeDigitized
	ImageUniqueID
	ExposureTime
	FNumber
	ExposureProgram
	SpectralSensitivity
	ISOSpeedRatings
	OECF
	SensitivityType
	ShutterSpeedValue
	ApertureValue
	BrightnessValue
	ExposureBiasValue
	MaxApertureValueS

	MeteringMode
	LightSource
	Flash
	FocalLength
	SubjectArea
	FlashEnergy
	SpatialFrequencyResponse
	FocalPlaneXResolution
	FocalPlaneYResolution
	FocalPlaneResolutionUnit
	SubjectLocation
	ExposureIndex
	SensingMethod
	FileSource
	SceneType
	CFAPattern
	CustomRendered
	ExposureMode
	WhiteBalance
	DigitalZoomRatio
	FocalLengthIn35mmFilm
	SceneCaptureType
	GainControl
	Contrast
	Saturation
	Sharpness
	DeviceSettingDescription
	SubjectDistanceRange
	LensMake
	LensModel
	PrintImageMatching // http://www.exiv2.org/tags.html
)

Hence the values

type Writer

type Writer struct {
}

Writer is the structure useful for write exif data

func NewWriter

func NewWriter() *Writer

NewWriter create an empty new writer to be filled with exif data.

Jump to

Keyboard shortcuts

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