Fix PDF thumbnail generation missing in backend, fix old CSS class override in ThumbnailImage
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m11s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m11s
This commit is contained in:
parent
3c3bf4dd8b
commit
093a6ac4ef
3 changed files with 4 additions and 4 deletions
|
|
@ -148,7 +148,7 @@ func (m *ThumbnailManager) worker(id int) {
|
|||
err = generateVideoThumbnail(fullSourcePath, destPath)
|
||||
} else if strings.HasPrefix(job.MimeType, "audio/") {
|
||||
err = generateAudioThumbnail(fullSourcePath, destPath)
|
||||
} else if strings.HasSuffix(job.FilePath, ".docx") || strings.HasSuffix(job.FilePath, ".pptx") || strings.HasSuffix(job.FilePath, ".xlsx") {
|
||||
} else if strings.HasSuffix(strings.ToLower(job.FilePath), ".pdf") || strings.HasSuffix(strings.ToLower(job.FilePath), ".docx") || strings.HasSuffix(strings.ToLower(job.FilePath), ".pptx") || strings.HasSuffix(strings.ToLower(job.FilePath), ".xlsx") {
|
||||
err = generateOfficeThumbnail(job.FilePath, destPath, m.Config)
|
||||
} else {
|
||||
continue
|
||||
|
|
|
|||
Reference in a new issue