thread-pond / signature-pad

A jQuery plugin for assisting in the creation of an HTML5 canvas based signature pad. Records the drawn signature in JSON for later regeneration.
BSD 3-Clause "New" or "Revised" License
727 stars 292 forks source link

Signature String length Issue #138

Open nspatilk opened 9 years ago

nspatilk commented 9 years ago

Hi, We are facing issue with signature string length.

Signature String Length is varying between two machines. Because of huge signature string length we are unable to save the signature. Please help us on this.

Browser versions are same, below are the details. In Machine1 it's failing even signature is smaller than working signature of Machine2.

Machine1: Win 7 Browser: Chrome Version 39.0.2171.71 m Signature String Length: 25000+ (below is the image) failedsign

Machine2: Windows server 2008 R2 Enterprise. Browser: Chrome Version 39.0.2171.71 m Signature String Length: ~5000 (below is the image) workingsign

thomasjbradley commented 9 years ago

Wow; that's crazy. I haven't seen that happening before.

My first thought would be: are the events being fired too many times on Windows 7?

nspatilk commented 9 years ago

Thanks Thomas for prompt reply.

We tried with similar signatures on same Win 7 machine by connecting to it remotely, When we connect remotely the signature length is less.

Signature String: "[{"lx":10,"ly":96,"mx":10,"my":95},{"lx":10,"ly":95,"mx":10,"my":96},{"lx":10,"ly":94,"mx":10,"my":95},{"lx":7,"ly":84,"mx":10,"my":94},{"lx":7,"ly":80,"mx":7,"my":84}]"

Length: ~160

remote_machine_length_168

But when we tried by connecting same machine locally signature length is more.

Signature String:"[{"lx":7,"ly":94,"mx":7,"my":93},{"lx":7,"ly":93,"mx":7,"my":94},{"lx":7,"ly":92,"mx":7,"my":93},{"lx":7,"ly":90,"mx":7,"my":92},{"lx":7,"ly":88,"mx":7,"my":90},{"lx":6,"ly":86,"mx":7,"my":88},{"lx":5,"ly":86,"mx":6,"my":86},{"lx":4,"ly":85,"mx":5,"my":86},{"lx":3,"ly":83,"mx":4,"my":85},{"lx":3,"ly":82,"mx":3,"my":83}]"

Length: ~620+ local_machine_length_621