-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using image restriction 'none' and aspect ratio. #265
Comments
@leonardo-melhor-envio, could you provide the codesandbox to reproduce your issue? |
@Norserium I updated the content of the issue, with the codesandbox link. |
In the exemple, the left (-249.57) is related to the image width (4284) but is applied as is in the canvas width 640) |
Have a look in canvas.ts The coordinates.left is related to the source image, you have to transform in canvas relative coordinates |
@leonardo-melhor-envio, @romain-aragon, try to update to the latest version ( |
It appears that there is still a problem with version 2.8.9. When cropping smaller than the set canvas size, the image aligns to the left. If you crop larger than the image size, the image aligns to the right. To resolve this issue, I had to downgrade to version 2.8.7, which does not have this problem. I couldn't find in the git commits where this bug was introduced, though. |
When adding these two properties to the "cropp" component, when generating the preview image, it does not align the source image to the center.
cropp component:
generated image:
implementation:
Codesandbox
The text was updated successfully, but these errors were encountered: