mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
fix: cropper cannot output transparent image
This commit is contained in:
@@ -83,9 +83,6 @@ export function cropImage(
|
|||||||
cropCanvas.height = cropH;
|
cropCanvas.height = cropH;
|
||||||
const ctx = cropCanvas.getContext('2d');
|
const ctx = cropCanvas.getContext('2d');
|
||||||
|
|
||||||
ctx.fillStyle = '#ffffff';
|
|
||||||
ctx.fillRect(0, 0, cropW, cropH);
|
|
||||||
|
|
||||||
ctx.drawImage(source, -cropX, -cropY);
|
ctx.drawImage(source, -cropX, -cropY);
|
||||||
|
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user