Update index.js
Browse files
index.js
CHANGED
@@ -334,6 +334,8 @@ example.addEventListener('click', (e) => {
|
|
334 |
fileUpload.addEventListener('change', async function(e) {
|
335 |
const file = e.target.files[0];
|
336 |
if (!file) return;
|
|
|
|
|
337 |
|
338 |
const image = await RawImage.fromURL(url);
|
339 |
const ar = image.width / image.height;
|
|
|
334 |
fileUpload.addEventListener('change', async function(e) {
|
335 |
const file = e.target.files[0];
|
336 |
if (!file) return;
|
337 |
+
|
338 |
+
const url = e2.target.result;
|
339 |
|
340 |
const image = await RawImage.fromURL(url);
|
341 |
const ar = image.width / image.height;
|