Preserve transparency of edited images.
This commit is contained in:
parent
58a51cdf3b
commit
2f5d3a06d1
@ -53,6 +53,7 @@ QR.oekaki =
|
|||||||
onCancel: ->
|
onCancel: ->
|
||||||
width: img.naturalWidth
|
width: img.naturalWidth
|
||||||
height: img.naturalHeight
|
height: img.naturalHeight
|
||||||
|
bgColor: 'transparent'
|
||||||
Tegaki.activeCtx.drawImage img, 0, 0
|
Tegaki.activeCtx.drawImage img, 0, 0
|
||||||
img.src = URL.createObjectURL e.detail
|
img.src = URL.createObjectURL e.detail
|
||||||
document.addEventListener 'QRFile', cb, false
|
document.addEventListener 'QRFile', cb, false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user