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

[bug] Image in FixedCropper appears blurry when zooming #75

Open
richardhenry opened this issue Sep 5, 2024 · 0 comments
Open

[bug] Image in FixedCropper appears blurry when zooming #75

richardhenry opened this issue Sep 5, 2024 · 0 comments

Comments

@richardhenry
Copy link

richardhenry commented Sep 5, 2024

Thanks for open sourcing this great library!

There is a bug in the FixedCropper where the zoomed image will appear blurrier than the original. I see the same issue in the docs website examples, so this isn't specific to my implementation.

Example 1 (from my own implementation)

Before zooming:

Screenshot 2024-09-04 at 5 39 33 PM

After zooming:

Screenshot 2024-09-04 at 5 39 41 PM

The original image has a lot more detail and clarity:

Screenshot 2024-09-04 at 5 40 54 PM

When exporting from the cropper with getCanvas() the detail looks good, so this seems to just be a rendering issue.

Example 2 (from the docs website)

It's a little less obvious in the documentation because the image is lower resolution to begin with (and I think also because the rendered cropper is larger), but you can see pixelation in the cropper view:

Screenshot 2024-09-04 at 5 42 23 PM

When viewing the original image, the clarity is better:

Screenshot 2024-09-04 at 5 42 27 PM

Let me know if I can provide any further information. I'm not including my own code since this issue is also visible in the example from the docs website, but let me know if that would be helpful.

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

No branches or pull requests

1 participant