Documentation
¶
Index ¶
- func ExtractExiftoolMetadata(conf *config.Config, fileNames ...string) ([]exiftool.FileMetadata, error)
- func RegexReplace(regex *regexp.Regexp, input, replacement string, replaceLimit int, ...) string
- func Replace(conf *config.Config, change *file.Change, vars *Variables) error
- type Exif
- type ID3
- type Variables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractExiftoolMetadata ¶ added in v2.2.0
func RegexReplace ¶
func RegexReplace( regex *regexp.Regexp, input, replacement string, replaceLimit int, replaceRange []int, ) string
RegexReplace replaces matched substrings in the input with the replacement. It respects the specified replacement limit. A negative limit indicates that replacement should start from the end of the fileName.
Types ¶
type Exif ¶
type Exif struct {
Latitude string
DateTimeOriginal string
Make string
Model string
Longitude string
Software string
LensModel string
ImageLength []int
ImageWidth []int
FNumber []string
FocalLength []string
FocalLengthIn35mmFilm []int
PixelYDimension []int
PixelXDimension []int
ExposureTime []string
ISOSpeedRatings []int
}
Exif represents exif information from an image file.
type ID3 ¶
type ID3 struct {
Format string
FileType string
Title string
Album string
Artist string
AlbumArtist string
Genre string
Composer string
Year int
Track int
TotalTracks int
Disc int
TotalDiscs int
}
ID3 represents id3 data from an audio file.
Click to show internal directories.
Click to hide internal directories.