We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 510901f + 837bc60 commit 53329f7Copy full SHA for 53329f7
1 file changed
src/SourceNodes/imagenode.js
@@ -36,7 +36,14 @@ class ImageNode extends SourceNode {
36
this._ready = true;
37
if (window.createImageBitmap) {
38
window
39
- .createImageBitmap(this._image, { imageOrientation: "flipY" })
+ .createImageBitmap(
40
+ this._image,
41
+ 0,
42
43
+ this._image.width,
44
+ this._image.height,
45
+ { imageOrientation: "flipY" }
46
+ )
47
.then(imageBitmap => {
48
this._element = imageBitmap;
49
this._triggerCallbacks("loaded");
0 commit comments