High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(web): avoid transparent pixels from rounded-full during profile picture capture (#25950)
Aditya Gaurav999ce3425191
diff --git a/web/src/lib/modals/ProfileImageCropperModal.svelte b/web/src/lib/modals/ProfileImageCropperModal.svelteindex b252c53683..fc57964a6b 100644--- a/web/src/lib/modals/ProfileImageCropperModal.svelte+++ b/web/src/lib/modals/ProfileImageCropperModal.svelte@@ -61,9 +61,14 @@const containerSize = cropContainer.offsetWidth;// Capture the crop container which maintains 1:1 aspect ratio+ // Override border-radius and border to avoid transparent corners from rounded-fullconst blob = await domtoimage.toBlob(cropContainer, {width: containerSize,height: containerSize,+ style: {+ borderRadius: '0',+ border: 'none',+ },});if (await hasTransparentPixels(blob)) {