Comment #6 on issue 233916 by
no...@chromium.org: toDataURL('image/jpeg')
Chrome Version 26.0.1410.64 stable win7. I installed the CIRC irc client
(it's a packaged app)
https://chrome.google.com/webstore/detail/circ/bebigdkelppomhhjaaianniiifjbgocn
And ran it. I inspected it's bin/main.html page from the chrome menu
(hotdog->tools->extensions) in developer mode, and typed the following
commands
c = document.createElement('canvas')
document.body.insertBefore(c, document.body.firstChild)
c.getContext("2d").fillRect(0,0,c.width,c.height)
img = document.createElement('img')
img.src = "/static/icon/icon128.png"
document.body.insertBefore(img, document.body.firstChild)
c.getContext("2d").drawImage(img, 0, 0)
c.toDataURL()
c.toDataURL('image/jpeg')
c.toDataURL('image/jpeg', 0.1)
Picture of that (attached).
Attachments:
quic-to-data-url-packaged-app.png 82.2 KB