Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<script>
window.addEventListener('load', function() {
b.getContext('2d')
a.src = b.toDataURL('image/jpeg', 0.1)
b.setAttribute('width', 2684354)
})
</script>
<img id='a' src='data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACwAAAAAAQABAAACAkQBADs='/>
<canvas id='b' height='800' width='800'></canvas>