From b67bd4f2602b20773d43c209db0dbaa045f3a1cd Mon Sep 17 00:00:00 2001 From: Sergey Konovalov Date: Fri, 8 Nov 2024 14:39:03 +0300 Subject: [PATCH] [bug] Fix tiff image upload; Fix bug 71550 --- DocService/sources/utilsDocService.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DocService/sources/utilsDocService.js b/DocService/sources/utilsDocService.js index e5f42a20..17ccb61d 100644 --- a/DocService/sources/utilsDocService.js +++ b/DocService/sources/utilsDocService.js @@ -35,6 +35,10 @@ const util = require("util"); const config = require('config'); const exifParser = require('exif-parser'); +//set global window to fix issue https://github.com/photopea/UTIF.js/issues/130 +if (!global.window) { + global.window = global; +} const Jimp = require('jimp'); const locale = require('windows-locale'); const ms = require('ms');