Skip to content

Commit

Permalink
refactor: Improve image paste functionality in RemoveBG.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ducan-ne committed Aug 28, 2024
1 parent dadc632 commit 102013c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RemoveBG.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const Converter = () => {
if (image.status === "done") {
const response = await fetch(image.downloadUrl)
const blob = await response.blob()
await zipWriter.add(image.filename, new BlobReader(blob))
await zipWriter.add(image.filename.replace(/\.[^/.]+$/, ".png"), new BlobReader(blob))
}
}
const zipBlob = await zipWriter.close()
Expand Down

0 comments on commit 102013c

Please sign in to comment.