Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

feat: allow rotating after cropping

httpjamesm7d5ceaea714f
diff --git a/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx b/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx
index 668c4ad92e..1f417992d0 100644
--- a/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx
+++ b/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx
@@ -296,7 +296,8 @@ const ImageEditorOverlay = (props: IProps) => {
// store current data to an image
const image = new Image();
- image.src = fileURL;
+ // image.src = fileURL;
+ image.src = canvas.toDataURL();
setCurrentRotationAngle(currentRotationAngle + angle);
angle = currentRotationAngle + angle;