From 42e7bda1ce901fe0e0ab61ae385b5c6ebca98e16 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 13 Jul 2024 15:16:10 +0100 Subject: [PATCH] Fix there being a black background on the image grid (#299) - Fix there being a black background on the card image grid - This was being caused me loading the images as a jpeg by mistake #279 Reviewed-on: https://git.vylpes.xyz/External/card-drop/pulls/299 Reviewed-by: VylpesTester Co-authored-by: Ethan Lane Co-committed-by: Ethan Lane --- src/helpers/ImageHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/ImageHelper.ts b/src/helpers/ImageHelper.ts index 3b64dd5..be3d083 100644 --- a/src/helpers/ImageHelper.ts +++ b/src/helpers/ImageHelper.ts @@ -46,7 +46,7 @@ export default class ImageHelper { } } - const image = await loadImage(await imageData.getBufferAsync("image/jpeg")); + const image = await loadImage(await imageData.getBufferAsync("image/png")); const x = i % gridWidth; const y = Math.floor(i / gridWidth);