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

[V2] If I use $toCanvas of selection, can I get the original size data? #1130

Closed
hoiheart opened this issue Jan 9, 2024 · 1 comment
Closed
Labels

Comments

@hoiheart
Copy link

hoiheart commented Jan 9, 2024

Hello,

After selecting the crop selection, make the image small by zoom and use $toCanvas of selection to expose
the results as much as the resolution currently shown.

스크린샷 2024-01-09 오후 8 45 16

스크린샷 2024-01-09 오후 8 45 26
(Pixel is broken because image is small.)

I want to receive crop data based on the original size, but if I manually select or resize the image, I can't keep the existing positions with each other.

Is there any way to solve this?
I think v1 is based on the original size.

@fengyuanchen
Copy link
Owner

Just pass the width and height options:

cropperSelection.$toCanvas({
  width: 1920,
}); 

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

No branches or pull requests

2 participants