Jump to content

creating URL from canvas image


Matej

Recommended Posts

This is what your Data URLs are looking like:

blob:http://fiddle.jshell.net/d4f30ebe-6b19-449d-879e-1c9d13f4253e

I don't really know how blob URLs are meant to work. Is this what you expected your program to make?

 

toDataUrl() is probably the right solution:

imagePieces.push(canvas.toDataURL());

But this triggers an error because the image is loaded from a different domain. In order for it to work the image and the HTML file need to be hosted on the same website.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...