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

Closed
D0m1N1k999 opened this issue Sep 19, 2024 · 1 comment
Closed
Labels
bug Something isn't working Released The issue is fixed/considered and released

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
@AhmeeedMostafa AhmeeedMostafa added bug Something isn't working Waiting release The issue's code is added in the dev. branch but not yet released and removed unseen labels Oct 27, 2024
@AhmeeedMostafa
Copy link
Collaborator

Hey @D0m1N1k999 It has been fixed in v4.9.0 please check it and reopen the issue if still there is any comment.

@AhmeeedMostafa AhmeeedMostafa added Released The issue is fixed/considered and released and removed Waiting release The issue's code is added in the dev. branch but not yet released labels Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Released The issue is fixed/considered and released
Projects
None yet
Development

No branches or pull requests

2 participants