use predefined resolutions for thumbnail generation

This commit is contained in:
David Christofas
2020-03-23 11:52:33 +01:00
parent 43bf107207
commit 3de4584a45
12 changed files with 125 additions and 56 deletions
+1 -1
View File
@@ -29,11 +29,11 @@ func Server(cfg *config.Config) *cli.Command {
Usage: "Start integrated server",
Flags: flagset.ServerWithConfig(cfg),
Before: func(c *cli.Context) error {
cfg.Thumbnail.Resolutions = c.StringSlice("thumbnail-resolution")
return nil
},
Action: func(c *cli.Context) error {
logger := NewLogger(cfg)
if cfg.Tracing.Enabled {
switch t := cfg.Tracing.Type; t {
case "agent":