Replies: 1 comment 5 replies
-
Just specify the output size with the options: const canvas = cropperSelection.$toCanvas({
width: 1920,
});
console.log(canvas.width); // 1920 |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The repo is really useful! Thanks for the author.
I want to use this repo on mobile. But I found it difficult to get a relative resolution.
E.g. I put a 1920 x 1080 image into canvas. On mobile, it just displays as 375 x 211.
Then crop the image, the result's width will be less than 375 rather than 1920.
Do you know how to get the relative resolution image?
Beta Was this translation helpful? Give feedback.
All reactions