pfp cropping #12

Merged
justtemmie merged 11 commits from pfp-cropping into main 2025-07-05 17:34:28 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit e9717b137e - Show all commits

View file

@ -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)
} }
}); });

View 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;