Open magic-uyr opened 10 years ago
I have the same problem. I post image data to database with image/svg+xm;base64 format, when I redisplay the image to chrome, there is and error: jSignature is unable to find import plugin with for format 'image/svg+xml;base64'.
Getting the same issue.
Any news there?
we havent lost our hope yet and waiting for help
Hi
Thanks for the amazing plugin, but i get the following error in chrome when calling setData:
Uncaught Error: jSignature is unable to find import plugin with for format 'image/svg+xml;base64'
This is the code I have been using, all works, except setData
$(".signature").jSignature(); $(".signature").after('
'); var sig = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj48c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iNTcwIiBoZWlnaHQ9IjEyNyI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwMDAwIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTSAxIDExMyBjIDAuNDYgLTAuMDkgMTcuMDUgLTMuODIgMjYgLTUgYyAyNC44MyAtMy4yNiA0OC4xNiAtNC41MSA3MyAtOCBjIDE2LjUyIC0yLjMyIDMxLjk0IC01LjIzIDQ4IC05IGMgMTEuMzQgLTIuNjYgMjEuOTIgLTYuMzEgMzMgLTEwIGMgNC4xOCAtMS4zOSA4LjAyIC0zLjA4IDEyIC01IGMgNS44OSAtMi44NCAxMS42MyAtNS43MyAxNyAtOSBjIDIuMTggLTEuMzMgNC4xNiAtMy4xNiA2IC01IGMgMi44NCAtMi44NCA1LjY1IC01Ljk0IDggLTkgYyAwLjg3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A1LjcyIDYuODYgOSA5IGMgMy45MiAyLjU2IDkuMTIgNC4yNyAxNCA2IGMgMTEuNDQgNC4wNSAyMi43NyA4LjAxIDM0IDExIGMgMy40NyAwLjkzIDcuNzYgLTAuMDQgMTEgMSBjIDQuNiAxLjQ3IDkuMTggNC45NiAxNCA3IGMgMy44OSAxLjY1IDcuODYgMi43NiAxMiA0IGMgMi43IDAuODEgNS4yOSAxLjU3IDggMiBjIDMuNjMgMC41NyA3LjI1IDAuODcgMTEgMSBsIDE3IDAiLz48L3N2Zz4="; $(".signature").jSignature("setData", sig); $(".signature").bind('change', function (e) { var datapair = $(this).jSignature("getData", "svgbase64"); console.log(datapair); $(".sigvalue").text(datapair); });
I have had a look at the plugins folder and there seems to be no import, I am using the latest jquery.min version of your solution
Thanks
Dave