From f022ee62105f6b43eb2d3c3c611ec83dc45f50f1 Mon Sep 17 00:00:00 2001 From: pa Date: Fri, 27 Mar 2026 13:17:09 +0900 Subject: [PATCH] fix: cropper cannot output transparent image --- src/composables/useImageCropper.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/composables/useImageCropper.js b/src/composables/useImageCropper.js index a52db586..97071043 100644 --- a/src/composables/useImageCropper.js +++ b/src/composables/useImageCropper.js @@ -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) => {