-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
FromDataURL reducing image size #105
Comments
Hmm, this happens only on Retina Display, I just reproduced it. You must deal with it yourself somehow, the creator said already multiple times that the library should not take care of this. |
It seems that this solves the problem: |
I am experiencing the same issue with device pixel ratio 1. Any help? |
Related to #153 |
To make the same image size you can add options |
Thanks to your last answer, we can now fix the problem with fromDataURL scaling issues, should close this issue. |
Thanks a lot for the response "demo-igor" |
Hello,
If I save a signature to a database using the toDataURL() function, and then I load that string back into the canvas using the fromDataURL() function, then the resulting image appears in the canvas but is noticeably smaller than the original image.
To test, draw in the canvas along all 4 edges. Save and then reload. You will see that the right-side and bottom-sides of the image now have space between the image and the border because the image was made slightly smaller.
Since I re-save images over and over for a good reason, they keep shrinking with each save!!!
Help!
The text was updated successfully, but these errors were encountered: