use predefined resolutions for thumbnail generation

This commit is contained in:
David Christofas committed 2020-03-23 11:52:33 +01:00
1 parent 43bf107207
commit 3de4584a45
12 files changed
+125 -56

No files matched your search

+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":