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

Moving the cropper origin to top:left #1147

Open
mapsedge opened this issue Mar 9, 2024 · 2 comments
Open

Moving the cropper origin to top:left #1147

mapsedge opened this issue Mar 9, 2024 · 2 comments

Comments

@mapsedge
Copy link

mapsedge commented Mar 9, 2024

Using cropper to define object placement on an image. The library used for the output has the origin at the top:left, where cropper has the origin at bottom:left. This requires additional calculations to compensate for and if that's missed anywhere in the code, the whole mapping is thrown off.

Being able to set the origin to match the output library would greatly simplify the project and reduce opportunities for error.

@fengyuanchen
Copy link
Owner

Any demo for checking? I think the origin is top left absolutely.

@mapsedge
Copy link
Author

Sorry - wrote them backwards. Any way to set cropper origin to bottom left?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants