Skip to content

Commit

Permalink
Merge branch 'refs/heads/opw-testing' into opw-prod
Browse files Browse the repository at this point in the history
  • Loading branch information
cbusillo committed Jul 24, 2024
2 parents ae53eb6 + d4446fd commit c41e98c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions product_connect/static/src/js/utils/image_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export async function resizeImage(file, maxWidth, maxHeight) {
let outputType = file.type
if (file.type === 'image/heic') {
outputType = 'image/jpeg'
file.name = file.name.replace(/\.heic$/, '.jpg')
}

resolve(canvas.toDataURL(outputType, 0.8).split(',')[1])
Expand Down

0 comments on commit c41e98c

Please sign in to comment.