New issue
Advanced search Search tips
Starred by 22 users

Issue metadata

Status: Duplicate
Merged: issue 67587
Closed: Aug 2011
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

  • Only users with Commit permission may comment.

Sign in to add a comment

Issue 83103: Implement canvas.toBlob

Reported by, May 18 2011 Project Member

Issue description

Comment 1 by, Jun 1 2011

Labels: Mstone-X

Comment 2 by, Aug 12 2011

Status: Assigned
@noel - can you take a look at implementing this?

Comment 3 by, Aug 15 2011

Mergedinto: 67587
Status: Duplicate

Comment 4 by, Aug 17 2011

@eric: what's the compelling use-case here?  And why add an async api to canvas (canvas is a sync api)?

Comment 5 by, Aug 17 2011

Not freezing up the browser when you try to save a 1080p full-browser canvas.

Comment 6 by, Aug 17 2011

There are a couple of easy use cases, but mainly, this wil allow better inter-op with the newer file APIs. 

I have a photo editing/drawing app. Here are a few scenarios:
1. toBlob() a canvas and send that blob using xhr2.send(blob) to my server for a save
2. toBlob() a canvas and save that blog to the HTML5 filesystem
3. toBlob() a canvas, create a blob url (createObjectUrl()), and display a link for users to download their creation on the client (using the new <a download> attribute.

All of these are possible now, but it requires unnecessary and inefficient transformations of the canvas data to/from dataURLs, etc.

Comment 7 by, Oct 13 2012

Project Member
Labels: Restrict-AddIssueComment-Commit
Mergedinto: chromium:67587
This issue has been closed for some time. No one will pay attention to new comments.
If you are seeing this bug or have new data, please click New Issue to start a new bug.

Comment 8 by, Mar 11 2013

Project Member
Labels: -Area-WebKit Cr-Content

Comment 9 by, Apr 6 2013

Project Member
Labels: -Cr-Content Cr-Blink

Sign in to add a comment