CLI: Create thumbs and convert files in deterministic order #3194

This also adds support for specifying a path to the thumbs command.

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2023-02-14 11:37:22 +01:00
parent 4e0f38881d
commit 0c4aa86f85
30 changed files with 161 additions and 83 deletions

View File

@@ -13,11 +13,11 @@ import (
"github.com/photoprism/photoprism/pkg/clean"
)
// ConvertCommand registers the convert cli command.
// ConvertCommand configures the command name, flags, and action.
var ConvertCommand = cli.Command{
Name: "convert",
Usage: "Converts files in other formats to JPEG and AVC as needed",
ArgsUsage: "[sub-folder]",
ArgsUsage: "[subfolder]",
Flags: []cli.Flag{
cli.StringSliceFlag{
Name: "ext, e",