I have limited knowledge on this subject, but I believe you're dealing with an HTML5 canvas object -- which creates SVG-type graphics on the fly
HTML5 Canvas != Image
In order to transfer between the two, I would look to convert the HTML5 canvas render into an image object through Rails
I don't know anything about how to do this, but this tutorial does
Paperclip
To transfer into Paperclip, I would do this:
- Transfer the Canvas render into an image (JS)
- Send the image to Rails (Paperclip)
- Use Paperclip to save the new record
I can write some code for this if you want, but it won't be tested or pretty