Versions in this module Expand all Collapse all v0 v0.9.5 Aug 27, 2023 Changes in this version + var JpegEncodeQuality = 90 + var KiT_Orientations = kit.Enums.AddEnum(OrientationsN, kit.NotBitFlag, nil) + func AddExifPrefix(exifData []byte) []byte + func DecDegFromDMS(degs, mins, secs float64) float64 + func EntryToFloat(e *exif.ExifTag) float64 + func EntryToFloats(e *exif.ExifTag) []float64 + func EntryToInt(e *exif.ExifTag) int + func ExifDateParser(ds string) (time.Time, error) + func OpenBytes(fn string) ([]byte, error) + func OpenHEIC(fname string) (image.Image, error) + func OpenImage(fname string) (image.Image, error) + func OpenImageAuto(fname string) (image.Image, error) + func OpenRawExif(fn string) ([]byte, error) + func OrientImage(img image.Image, orient Orientations) image.Image + func SaveImage(fname string, im image.Image) error + type Exposure struct + Aperture float64 + FStop float64 + FocalLen float64 + ISOSpeed float64 + Time float64 + type GPSCoord struct + Alt float64 + Lat float64 + Long float64 + type GPSMisc struct + DestBearing float64 + DestBearingRef string + ImgDir float64 + ImgDirRef string + Speed float64 + SpeedRef string + type IfdEntry struct + FqIfdPath string + IfdIndex int + IfdPath string + TagId uint16 + TagName string + TagTypeId exifcommon.TagTypePrimitive + TagTypeName string + UnitCount uint32 + Value any + ValueString string + type Info struct + DateMod time.Time + DateTaken time.Time + Depth int + Desc string + Exposure Exposure + Ext string + File string + FileMod time.Time + Flagged bool + GPSDate time.Time + GPSLoc GPSCoord + GPSMisc GPSMisc + Number int + Orient Orientations + Size image.Point + Sup filecat.Supported + Tags map[string]string + Thumb string + func NewInfoForFile(fn string) (*Info, error) + func OpenNewInfo(fn string) (*Info, error) + func (pi *Info) Defaults() + func (pi *Info) DiffsTo(npi *Info) []string + func (pi *Info) FileBase() string + func (pi *Info) GetSize() image.Point + func (pi *Info) GetSizeOrient() image.Point + func (pi *Info) ImageOriented() (image.Image, error) + func (pi *Info) ParseRawExif(rawExif []byte) + func (pi *Info) SaveJpegExif(rawExif []byte, img image.Image) error + func (pi *Info) SaveJpegNew(img image.Image) error + func (pi *Info) SaveJpegUpdated() error + func (pi *Info) SaveJpegUpdatedExif(rawExif []byte, img image.Image) error + func (pi *Info) SaveJpegUpdatedFailsafe() error + func (pi *Info) SetFileThumbFmBase(fnext, fdir, tdir string) + func (pi *Info) SetFileThumbFmFile(fname, tdir string) + func (pi *Info) UpdateExif(rawExif []byte, rootIfd *exif.Ifd) (ib *exif.IfdBuilder, updt bool, err error) + func (pi *Info) UpdateFileMod() error + type Orientations int + const FlippedH + const FlippedHRotated90L + const FlippedHRotated90R + const FlippedV + const NoOrient + const OrientUndef + const OrientationsN + const Rotated0 + const Rotated180 + const Rotated90L + const Rotated90R + func (ev *Orientations) UnmarshalJSON(b []byte) error + func (ev Orientations) MarshalJSON() ([]byte, error) + func (i *Orientations) FromString(s string) error + func (i Orientations) String() string + func (or Orientations) OrientSize(sz image.Point) image.Point + func (or Orientations) Rotate(deg int) Orientations + type PicMap map[string]*Info + func (pm *PicMap) InfoByName(fname string) (*Info, bool) + func (pm *PicMap) OpenJSON(fname string) error + func (pm *PicMap) SaveJSON(fname string) error + func (pm *PicMap) Set(pi *Info) + func (pm *PicMap) SetFileThumb(adir, tdir string) + type Pics []*Info + func (pc Pics) IdxByFile(fname string) int + func (pc Pics) IdxByThumb(tname string) int + func (pc Pics) SortByDate(ascending bool) + func (pc Pics) Thumbs() []string