Closed gfranco93 closed 8 years ago
Are you talking about the fact that the resulting output is not filling the cropped canvas?
Also, is this affecting your production code? Do you need it released on NPM asap?
Don't worry, it just affects the dev code.
I'm talking about the fact that the cropper selector size (I don't know if that's the proper way to call it, I'm referring to the white rectangle) differs from the size of the picture. The picture size is 200x150, and I setted the cropper selector size to 200x150, so it should cover the whole picture.
If I didn't make myself clear, you should try changing (in the plunker) the cropper selector size to 201x150 and see the difference it makes.
Thanks @gfranco93
When cropAspect == sourceAspect the cropper dimensions are smaller than they should be. Plunker: https://embed.plnkr.co/GdlRu0q3EEWEnvnwRFom/
The following code is wrong: (Extracted from imageCropper, lines 667 to 688)
I believe deleting the 'else' block and changing the 'else if' to just 'else' solves the problem. I'm going to submit a PR in a few hours.