Files
photoview/api/graphql/models/media_exif.go
Kjeldgaard 7b5305579b Extract metadata as integers
Extract all metada as integers fomr exiftool.

Signed-off-by: Kjeldgaard <Kjeldgaard@users.noreply.github.com>
2021-03-23 21:36:03 +01:00

31 lines
529 B
Go

package models
import (
"time"
)
type MediaEXIF struct {
Model
Camera *string
Maker *string
Lens *string
DateShot *time.Time
Exposure *string
Aperture *float64
Iso *int64
FocalLength *float64
Flash *string
Orientation *int64
ExposureProgram *int64
GPSLatitude *float64
GPSLongitude *float64
}
func (MediaEXIF) TableName() string {
return "media_exif"
}
func (exif *MediaEXIF) Media() *Media {
panic("not implemented")
}