From f210827e965527d8f9d4cb77eeedb6ba5d730178 Mon Sep 17 00:00:00 2001 From: Max Bischof Date: Mon, 18 Sep 2023 10:58:22 +0200 Subject: [PATCH] Use imagemagick 7+ api --- .../server/src/modules/files-storage/service/preview.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/modules/files-storage/service/preview.service.ts b/apps/server/src/modules/files-storage/service/preview.service.ts index 7cf33afe5fe..5ca2093351b 100644 --- a/apps/server/src/modules/files-storage/service/preview.service.ts +++ b/apps/server/src/modules/files-storage/service/preview.service.ts @@ -116,7 +116,7 @@ export class PreviewService { ): PassThrough { const mimeType = previewParams.outputFormat ?? fileRecord.mimeType; const format = this.getFormat(mimeType); - const im = subClass({ imageMagick: true }); + const im = subClass({ imageMagick: '7+' }); const preview = im(original.data, fileRecord.name); const { width } = previewParams;