fengyuanchen / cropperjs

JavaScript image cropper.
https://fengyuanchen.github.io/cropperjs/
MIT License
13.14k stars 2.42k forks source link

Moving the cropper origin to top:left #1147

Closed mapsedge closed 3 months ago

mapsedge commented 8 months ago

Using cropper to define object placement on an image. The library used for the output has the origin at the top:left, where cropper has the origin at bottom:left. This requires additional calculations to compensate for and if that's missed anywhere in the code, the whole mapping is thrown off.

Being able to set the origin to match the output library would greatly simplify the project and reduce opportunities for error.

fengyuanchen commented 8 months ago

Any demo for checking? I think the origin is top left absolutely.

mapsedge commented 8 months ago

Sorry - wrote them backwards. Any way to set cropper origin to bottom left?

fengyuanchen commented 3 months ago

Sorry - wrote them backwards. Any way to set cropper origin to bottom left?

Not support that.