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

Switch putImageData method to drawImage #472

Merged
merged 1 commit into from
Jun 20, 2023

Conversation

carlosdi0
Copy link
Contributor

Hi, this change fix this issue #470.

Codesandbox fixed

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit d42ac86:

Sandbox Source
react-easy-crop Configuration
react-easy-crop custom image demo (forked) PR

@ValentinH
Copy link
Owner

Thank you for this. So if I understand correctly, we now need to use 2 canvas for this to work?

@carlosdi0
Copy link
Contributor Author

Yes, just that and besides, from what I've read drawImage is much more optimal than putImageData.

Benchmark

@ValentinH
Copy link
Owner

Awesome thanks! I'll update the pinned demo from the readme then

@ValentinH ValentinH merged commit 8c136c2 into ValentinH:main Jun 20, 2023
@github-actions
Copy link

🚀 PR was released in v4.7.5 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants