You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
398 B

11 months ago
package main
import (
"log"
"os"
"git.neveris.one/gryffyn/exren/parser"
11 months ago
)
func main() {
format := `%DateTimeOriginal%-gryffyn.jpg`
path := "test.jpg"
exifData := parser.NewExif(path)
11 months ago
_ = exifData.Parse()
newpath := parser.ParseFormat(format, exifData.Tags)
println("PATH: " + path)
println("NEWPATH: " + newpath)
err := os.Rename(path, newpath)
11 months ago
if err != nil {
log.Fatal(err)
}
}