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: #299 Reviewed-by: VylpesTester <tester@vylpes.com> Co-authored-by: Ethan Lane <ethan@vylpes.com> Co-committed-by: Ethan Lane <ethan@vylpes.com>
This commit is contained in:
parent
b6f814f895
commit
42e7bda1ce
1 changed files with 1 additions and 1 deletions
|
@ -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 x = i % gridWidth;
|
||||||
const y = Math.floor(i / gridWidth);
|
const y = Math.floor(i / gridWidth);
|
||||||
|
|
Loading…
Reference in a new issue