From 115317110a47c968b68328ce4be19d7bd6136f1d Mon Sep 17 00:00:00 2001 From: Ken Southerland Date: Fri, 16 Oct 2020 15:56:16 -0700 Subject: [PATCH] fix: alpha issue --- .../assets-generation/assets-generation-service.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/services/assets-generation/assets-generation-service.ts b/lib/services/assets-generation/assets-generation-service.ts index fa99c8cdb4..898a79237c 100644 --- a/lib/services/assets-generation/assets-generation-service.ts +++ b/lib/services/assets-generation/assets-generation-service.ts @@ -157,7 +157,13 @@ export class AssetsGenerationService implements IAssetsGenerationService { // This code disables the alpha chanel, as some images for the Apple App Store must not have transparency. if (assetItem.rgba === false) { - image = image.rgba(false); + // + // The original code here became broken at some time and there is an issue posted here.. + // https://github.com/oliver-moran/jimp/issues/954 + // But NathanaelA recommended the below change and it works so maybe that's just what we go with. + // + // image = image.rgba(false); + image = image.colorType(2); } image.write(outputPath);