Skip to content

Commit becbe60

Browse files
authored
fix: asset generation alpha value (#5420)
1 parent c5db5fe commit becbe60

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/services/assets-generation/assets-generation-service.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,13 @@ export class AssetsGenerationService implements IAssetsGenerationService {
157157

158158
// This code disables the alpha chanel, as some images for the Apple App Store must not have transparency.
159159
if (assetItem.rgba === false) {
160-
image = image.rgba(false);
160+
//
161+
// The original code here became broken at some time and there is an issue posted here..
162+
// https://github.com/oliver-moran/jimp/issues/954
163+
// But NathanaelA recommended the below change and it works so maybe that's just what we go with.
164+
//
165+
// image = image.rgba(false);
166+
image = image.colorType(2);
161167
}
162168

163169
image.write(outputPath);

0 commit comments

Comments
 (0)