react-advanced-cropper icon indicating copy to clipboard operation
react-advanced-cropper copied to clipboard

Is there a way to get absolute coordinates of the crop when the image is rotated

Open vas4oo opened this issue 8 months ago • 1 comments

I'm currently trying to get the coordinates of a crop area of a rotated image. Is there a way to accomplish this with react-advanced-cropper?

vas4oo avatar May 12 '25 15:05 vas4oo

Reopening this, because I still haven't found a solution. Here is a code sandbox. The problem I'm facing is when I rotate the image. I want to get the coordinates of the stencil of the original image, but not of the rotated one.

If I'm not mistaken, the coordinates of the stencil are actually coordinates inside the canvas, but I need the coordinates of the stencil in the perspective of the original image. And I'm wondering if this can be accomplished

vas4oo avatar May 27 '25 15:05 vas4oo