Preserve transparency of edited images.

This commit is contained in:
ccd0 2015-10-25 01:49:18 -07:00
parent 58a51cdf3b
commit 2f5d3a06d1

View File

@ -53,6 +53,7 @@ QR.oekaki =
onCancel: ->
width: img.naturalWidth
height: img.naturalHeight
bgColor: 'transparent'
Tegaki.activeCtx.drawImage img, 0, 0
img.src = URL.createObjectURL e.detail
document.addEventListener 'QRFile', cb, false