Aspect ratio changes when new image is loaded #405
Unanswered
riftcodercode
asked this question in
Q&A
Replies: 1 comment
-
@riftcodercode I assume you need to remember the last positions of the cropper, images and relationship using existing endpoints and set up them after each cropper destruction when new cropper is ready to use, I think these are the endpoints from demo site: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm setting the aspect ratio in the options and when the cropper first loads it is setting the size of the crop area based on this. When I call Destroy and replace the Src, the crop area seems to be reset based on the new image dimensions and it is no longer in the aspect ratio that I specified. I've tried calling SetAspectRatio immediately after RevokeObjectUrlAsync and did not have any luck.
Anything I'm doing wrong here? My only option if I cannot get this to work will be to have the user upload their image first, save it to the server, and then set the Src to that image path, but I'd prefer to avoid that if possible. Thank you for the great tool! Any help you can provide is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions