Skip to content
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

Corrupted signature images on mobile app #170

Open
SeanB79 opened this issue Jun 20, 2019 · 1 comment
Open

Corrupted signature images on mobile app #170

SeanB79 opened this issue Jun 20, 2019 · 1 comment

Comments

@SeanB79
Copy link

SeanB79 commented Jun 20, 2019

Thanks for a great component.

We are having an issue where a small % of signatures collected are coming out corrupted.
Our code is:
var pic = $sigdiv.jSignature("getData", "image");
app.trigger('extif:saveSignatureFile', 'rngNameOfFile', pic[1]);
extif:saveSignatureFile then writes that data to the device as a file

We then call $sigdiv.jSignature("getData", "svg"); to get the svg version and use that to send to the server to be added to the pdf file.

Both the image file and the pdf are showing the corrupted image.
The trigger of this code is on a button click after the signature has been captured.
We are running the app on Samsung tab 10 Android 7.0 devices.

Samples of image files:
1_905399_1_closingphoto2
905334_1_closingphoto1
905495_1_closingphoto1

@brianrichins
Copy link

brianrichins commented Aug 7, 2019

This looks like the SVG data is being saved to image as individual points, instead of as the bezier (I presume) curves which are defined by those points. Inspect the results of getData and pass them into an SVG validator to see if the corruption is happening during extraction or during the save process.

Can you isolate the devices experiencing the issue and see if they happen to have a different drawing SDK, or anything else needed in the extif:saveSignatureFile implementation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants