π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
feat: restore original button
httpjamesm106242964547
diff --git a/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx b/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsxindex 1f417992d0..30f1bf77de 100644--- a/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx+++ b/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx@@ -135,7 +135,8 @@ const ImageEditorOverlay = (props: IProps) => {if (!context || !canvas) return;const img = new Image();- img.src = fileURL;+ // img.src = fileURL;+ img.src = canvas.toDataURL();img.onload = () => {const sourceWidth = img.width;const sourceHeight = img.height;@@ -395,7 +396,7 @@ const ImageEditorOverlay = (props: IProps) => {<CloseIcon /></IconButton></HorizontalFlex>- <MenuSectionTitle title={'Aspect Ratio'} />+ <MenuSectionTitle title="Reset" /><MenuItemGroupstyle={{marginBottom: '0.5rem',@@ -406,8 +407,14 @@ const ImageEditorOverlay = (props: IProps) => {onClick={() => {loadCanvas();}}- label={'Original'}+ label={'Restore Original'}/>+ </MenuItemGroup>+ <MenuSectionTitle title={'Aspect Ratio'} />+ <MenuItemGroup+ style={{+ marginBottom: '0.5rem',+ }}><EnteMenuItemdisabled={cropLoading}startIcon={<CropSquareIcon />}