pfp cropping #12
2 changed files with 3 additions and 3 deletions
|
@ -55,7 +55,7 @@ async function cropImage() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const file = new File([blob], 'image.png', { type: 'image/png' })
|
const file = new File([blob], 'preview.png', { type: 'image/png' })
|
||||||
reader.readAsDataURL(file)
|
reader.readAsDataURL(file)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -46,8 +46,8 @@ if (!user) {
|
||||||
}
|
}
|
||||||
|
|
||||||
let newPfpFile: File;
|
let newPfpFile: File;
|
||||||
const isCropPopupVisible = ref(false); // State to manage the visibility of the CropPopup
|
const isCropPopupVisible = ref(false);
|
||||||
const cropImageSrc = ref(''); // State to hold the image source for cropping
|
const cropImageSrc = ref('');
|
||||||
|
|||||||
|
|
||||||
async function saveChanges() {
|
async function saveChanges() {
|
||||||
if (!user) return;
|
if (!user) return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue
Use double quotes