From 3420d914fc844be3948785a20d05c1f5ec6f2baf Mon Sep 17 00:00:00 2001 From: Hoppy Date: Mon, 19 Mar 2018 19:09:46 -0500 Subject: [PATCH] turn off rgba on thumbnails to avoid being unable to upload files which don't fithe .contain() box --- server/libs/uploads-agent.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/libs/uploads-agent.js b/server/libs/uploads-agent.js index a8ae79ec..8cd53023 100644 --- a/server/libs/uploads-agent.js +++ b/server/libs/uploads-agent.js @@ -235,6 +235,7 @@ module.exports = { return jimp.read(sourcePath).then(img => { return img .contain(150, 150) + .rgba(false) .write(destPath) }) },