From 10e3854082feea20ef8c264d46bdf5b2056f7009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E7=99=BD-=E7=99=BD?= Date: Tue, 13 May 2025 14:38:17 +0800 Subject: [PATCH] fix(thumb): libreoffice warning (#2358) --- pkg/thumb/libreoffice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/thumb/libreoffice.go b/pkg/thumb/libreoffice.go index 609fade..dfdfe18 100644 --- a/pkg/thumb/libreoffice.go +++ b/pkg/thumb/libreoffice.go @@ -71,7 +71,7 @@ func (l *LibreOfficeGenerator) Generate(ctx context.Context, es entitysource.Ent // Convert the document to an image encode := l.settings.ThumbEncode(ctx) cmd := exec.CommandContext(ctx, l.settings.LibreOfficePath(ctx), "--headless", - "-nologo", "--nofirststartwizard", "--invisible", "--norestore", "--convert-to", + "--nologo", "--nofirststartwizard", "--invisible", "--norestore", "--convert-to", encode.Format, "--outdir", tempOutputPath, tempInputPath) // Redirect IO