Fix: thumbnail worker payload for non-xlsx files and change timeout to interval for thumbnail updates
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m27s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m27s
This commit is contained in:
parent
d8526afd45
commit
d4e66c9afa
3 changed files with 13 additions and 11 deletions
|
|
@ -167,12 +167,15 @@ func generateOfficeThumbnail(filePath, destPath string, cfg *config.Config) erro
|
|||
"width": 1024,
|
||||
"height": 1024,
|
||||
},
|
||||
"spreadsheetLayout": map[string]interface{}{
|
||||
}
|
||||
|
||||
if ext == "xlsx" {
|
||||
payload["spreadsheetLayout"] = map[string]interface{}{
|
||||
"ignorePrintArea": true,
|
||||
"printGridlines": true,
|
||||
"printHeadings": true,
|
||||
"fitToWidth": 1,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
payloadBytes, err := json.Marshal(payload)
|
||||
|
|
|
|||
Reference in a new issue