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(ctx context.Context, conf *config.Config, change *file.Change, vars *Variables) error
- type Exif
- type VariableProvider
- 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 VariableProvider ¶ added in v2.2.3
type VariableProvider interface {
Replace(ctx context.Context, conf *config.Config, change *file.Change) error
}
VariableProvider defines the interface for all variable replacement providers.
type Variables ¶
type Variables struct {
// contains filtered or unexported fields
}
func (*Variables) ExifMatches ¶ added in v2.2.3
func (v *Variables) ExifMatches() []exifVarMatch
func (*Variables) HashMatches ¶ added in v2.2.3
func (v *Variables) HashMatches() []hashVarMatch
func (*Variables) ID3Matches ¶ added in v2.2.3
func (v *Variables) ID3Matches() []id3VarMatch
func (*Variables) IndexMatches ¶
Click to show internal directories.
Click to hide internal directories.