Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct { Target string `json:"target"` LastUpdate int64 `json:"last_update"` Photos []Photo `json:"photos"` }
Cache is the struct that represents a Photo cache JSON file.
type Photo ¶
type Photo struct { Path string `json:"path"` Size int64 `json:"size"` Timestamp int64 `json:"tstamp"` Camera string `json:"camera"` Hash string `json:"hash"` }
Photo represents a JPEG file entry of a JSON cache "photos" property.
func AnalyzePhoto ¶
AnalyzePhoto analyizes a JPEG files, including the Exif metadata.
func (*Photo) HeicToJPEG ¶
HeicToJPEG converts an HEIC photo to the JPEG format. If the photo is not an HEIC file or if there is already a file with the same name but .jpg extension this function does nothing.
func (*Photo) RenameToExif ¶
RenameToExif renames the photo according to the Exif timestamp in the YYYY-MM-DD_HH-MM-SS.jpg format.
Click to show internal directories.
Click to hide internal directories.