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

Default cropping ratio only sets image dimension at first rendering #493

Open
D0m1N1k999 opened this issue Sep 19, 2024 · 0 comments
Open
Labels

Comments

@D0m1N1k999
Copy link

When cropping an image with a configured default ratio (e.g. 1 / 1) at first the cropped image dimensions are set correctly (e.g. 100px / 100px). But after 1. uploading the same image again or 2. reinitializing the container, the image dimensions of the whole picture are displayed (e.g. 150px / 100px) and not only of the cropped part. The correct cropped dimensions only get set when dragging or changing the size of the cropping area.

https://codepen.io/D0m1N1k999/pen/qBzeVoz

Steps to reproduce the behavior:

  1. Click on "Test" button and look at the dimensions of the image
  2. Click on "Test" button again and look again
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

1 participant