fengyuanchen / cropperjs

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

Moving the cropper origin to top:left #1147

Open mapsedge opened 4 months ago

mapsedge commented 4 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 4 months ago

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

mapsedge commented 3 months ago

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