Skip to content

Question about signature size vs canvas size #248

Closed
@shawe

Description

I'm using this function #49 (comment) shared by @jaredatch that crop the user signature without whitespace.

My code now is like this, for always resize and draw, that in my opinion is not correctly explained on your example: #33 (comment) and this caused a lot of issues reported here.

I based my code in your example code but I'm using BootStrap for responsiveness and the canvas size can be set different width/height for any device, and signature is always set with canvas size, without respecting the stored canvas size and aspect ratio. Is there a way to change this behavior? In other words, I prefer to get a scaled signatured inside of canvas used by signature_pad.

For example, this can help me: #153 (comment) ?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions