fix: cropper cannot output transparent image

This commit is contained in:
pa
2026-03-27 13:17:09 +09:00
parent 4da9e1cf46
commit f022ee6210

View File

@@ -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) => {