From 08e440093564bd2308f2a843901657cfb28f6095 Mon Sep 17 00:00:00 2001 From: Pyll Gomez <57198612+workatease@users.noreply.github.com> Date: Mon, 22 Feb 2021 17:10:24 -0500 Subject: [PATCH] Fix for generating meta data gif and tiff images (#4230) * Rotate JPG image on upload #4206 * fixes #3949 width/height generated for gif and tif --- api/src/services/files.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/services/files.ts b/api/src/services/files.ts index e3b2ecbf2d..1a1bbce075 100644 --- a/api/src/services/files.ts +++ b/api/src/services/files.ts @@ -48,7 +48,7 @@ export class FilesService extends ItemsService { payload.type = 'application/octet-stream'; } - if (['image/jpeg', 'image/png', 'image/webp'].includes(payload.type)) { + if (['image/jpeg', 'image/png', 'image/webp', 'image/gif', 'image/tiff'].includes(payload.type)) { const pipeline = sharp(); pipeline