.NET 6 MVC application uses Signature Pad from https://github.com/szimek/signature_pad to create signatures. Signature json strings from it are stored in PostgreSql database as strings like
[{"penColor":"blue","dotSize":0,"minWidth":0.5,"maxWidth":2, "velocityFilterWeight":0.7,"points":[{"time":1664603146607,"x":87.11111450195312,"y":46.8194580078125,"pressure":0.5}, {"time":1664603146948,"x":92.44445037841797,"y":45.9305419921875,"pressure":0.5}, {"time":1664603146981,"x":100.44444274902344,"y":50.375,"pressure":0.5}, {"time":1664603147051,"x":105.77778625488281,"y":52.152801513671875,"pressure":0.5}]}]
How to convert this json to image data url in server side? Github contains only javascript code for conversion in client side.
How to implement this in server? Should javascript converted to C# (no idea how to render canvas in C#), can this javascript run? Application also uses SixLabors.ImageSharp, maybe this can used.