Open gabriprat opened 2 years ago
any update?
Indeed amazing project!! I am facing the same issue:
Any size below 150 will cause crash, it starts crashing at size of 149 and lower values from height and width! Strange. I would like to set the canvas size to match the size of the imgsrc Image, Any help is appreciated. Thanks
update: on further experimentation, the lower limit for width is 150 and height is 75.
any update?
https://github.com/embiem/react-canvas-draw/pull/140 there is a PR to fix this apparently
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
react-canvas-draw@1.2.1
for the project I'm working on.I'm calculating the size of the canvas based on the size of the image and the size of the screen to make sure the image always fits the screen. When I tried editing images that were much taller than wider I got an error like this:
The easiest way to reproduce the problem for me was to set
canvasWidth={100}
andcanvasHeight={400}
and then I consistently reproduced the error.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.