Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jiinbe authored Jun 24, 2024
1 parent af69442 commit 21ee865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ statusElement.textContent = config.messages.uploading;

let uploadedImage = document.createElement('img');
let heightRatio = 1.5;
uploadedImage.height = canvas.width * heightRatio;
uploadedImage.height = uploadedImage.width * heightRatio;
uploadedImage.src = URL.createObjectURL(this.files[0]);
// uploadedImage.setAttribute("width", "1024");
// uploadedImage.setAttribute("height", "1024");
Expand Down

0 comments on commit 21ee865

Please sign in to comment.