How to get the x, y, height, width coordinates of the selection relative to the underlying image? #1278
-
|
If I want to perform the actual crop dynamically on the backend, how can I obtain the coordinates of the selection in relation to the natural size of the image? The migration guide says to: Is there an example of doing that? The selection properties are in relation to the canvas, but the matrix returned by $getTransform is not clear to me. How to use it to translate the selection? What is the reference point for calculating? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
I think that I was able to make some progress by using |
Beta Was this translation helpful? Give feedback.
You can refer to the CropperSelection's Limit boundaries example.