Skip to content

Commit

Permalink
fix: crossorigin
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Dec 24, 2023
1 parent 130ef8f commit c772499
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/data/image.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export function cropToSquare(imgUrl: string) {
const img = new Image()
img.crossOrigin = 'anonymous'
img.src = imgUrl

const canvas = document.createElement('canvas')
Expand Down

0 comments on commit c772499

Please sign in to comment.