Signature_pad: Signature is much larger than canvas when I use fromDataURL

Created on 12 Jan 2018  ·  4Comments  ·  Source: szimek/signature_pad

Hello.

When I save a signature and then reload it using fromDataURL, the signature is multiplied in size and larger than the canvas. I am using the simplest implementation of a signature_pad in my app, so it seems there is an issue with signature_pad not allowing this behavior to be predictable and simple.

Can anyone please suggest me how to reload the image using fromDataURL with the same size as the original? And without complex canvas manipulation?

Thank you.

Most helpful comment

@psychochicken .fromDataURL(url, {ratio: 1})

All 4 comments

Having the exact opposite problem as Zuldra. When reading a signature fromDataURL, the signature on the canvas is about 25% smaller. I've also got a very simple Signature Pad set up, be happy to give more details if needed.

After the same result, a way to reload image using fromDataUrl with the same size as original.

@psychochicken .fromDataURL(url, {ratio: 1})

@n3b You rock, my friend. Thanks!

@n3b thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

erangaapp picture erangaapp  ·  8Comments

rmmackay picture rmmackay  ·  7Comments

c2ofh picture c2ofh  ·  7Comments

Sparticuz picture Sparticuz  ·  7Comments

auam88 picture auam88  ·  4Comments