Can CropRotateEditor Open with the Image Fitted by Height or Width? #713
Answered
by
hm21
yangheecho
asked this question in
Q&A
-
|
Is it possible to display the image as fitHeight or fitWidth when opening the CropRotateEditor? |
Beta Was this translation helpful? Give feedback.
Answered by
hm21
Dec 18, 2025
Replies: 1 comment 2 replies
-
|
Could you clarify what you mean by "fitHeight or fitWidth"? Do you mean that if the image is initially scaled to fit the screen width, it should instead start zoomed in so that it fits the height? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Got it. To do that, set up a callback where you update the required scale factor directly in
onInit, like this:In that example, I just set the scale factor to 2, but you'll need to calculate it based on your image size. Also, make sure to update to version
11.15.0, as I added thesetScalemethod in that release.