Skip to content

toDataURL only grabs half the image... #12

Description

@boutzamat

Hey. Awesome work.

I am trying to implement this in my website, but when i try to save the canvas value and display it in the browser (or in a base64 decoder) both only shows half the image.

I tried with other drawing applications and the value gets displayed correctly in the browser and base64 decoder.

var dataurl = canvas_simple.toDataURL(); console.log(dataurl);
If you copy the console.log value and paste it in your browser URL or even a base64 decoder (https://codebeautify.org/base64-to-image-converter) you can see that the full image isn't there.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions