Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method getObjectContext returns base64 image with incorrect orientation #177

Open
dansreis opened this issue Jun 28, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@dansreis
Copy link
Owner

Description:
The getObjectContext method in the react-canvas-annotator library is currently returning base64 encoded images with incorrect orientation. This bug needs to be addressed to ensure that the returned images maintain the correct orientation as displayed on the canvas.

Steps to Reproduce:

Use the getObjectContext method to get the base64 representation of an image on the canvas.
Observe that the orientation of the returned base64 image does not match the orientation of the image as displayed on the canvas.

Expected Behavior:
The getObjectContext method should return a base64 encoded image that matches the orientation of the image on the canvas.

Actual Behavior:
The returned base64 encoded image has an incorrect orientation compared to the image on the canvas.

Proposed Solution:
Investigate the code in the getObjectContext method to identify where the orientation handling is failing.
Update the method to correctly account for the orientation of the image.
Add tests to ensure that images are returned with the correct orientation.

@dansreis dansreis added the bug Something isn't working label Jun 28, 2024
@dansreis dansreis assigned dansreis and unassigned dansreis Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant