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