Closed lexiv0re closed 6 years ago
All decimals will be ignored (floored) when apply to canvas element to crop. It is the default behaviour of canvas element.
Are there any good known workarounds for this? Maybe there is a way to apply some restrictions to crop area to prevent this?
Maybe send both the data and image to server to crop it.
Yes, that's an option.
Is it possible to show preview
container (not the crop area) with the rounding already applied? If not, do you have an idea if it will be hard to apply such an enhancement?
You can fork one and try to round all size related values for your expectation if you have interest.
Hi @fengyuanchen! First of all, thanks for the cropper.
Was testing in https://fengyuanchen.github.io/photo-editor/: Selecting results in which is cut on the right and bottom sides.
The cropped area is very small (about 16x16px) so probably it's a rounding issue?
Source image: