A signature shrinks by 1/2 every time it is saved #847
ZenithElevate
started this conversation in
General
Replies: 2 comments 1 reply
-
Do you account for high DPI? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ah, I wasn's aware that was a thing. With that snippet, the canvas keeps growing slowly when the browser window is resized. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Today, a user was testing, and they saw a very strange behavior: the signature shrunk every time it was loaded from the DB and saved back. They were using a Samsung S26 with Android 14 to initially create the signature, and thereafter it shrunk. But I am not able to reproduce this behavior when I test on the latest Firefox, end to end. Only that signature which they created shrunk. This is arguably the weirdest thing that I've seen over my career.
My implementation follows your recommendation to the letter: the JS assigns the signature to a hidden, then the URL prefix is stripped, and the Base64 is saved in the DB. The loading follows the opposite process, and this works fine for all of a few dozens signatures that I've created myself. The code can load and re-save them as many times as I want, and they never ever change. There is nothing in it that could even remotely know how to manipulate the image in such a fashion.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions