UNPKG

@googleforcreators/media

Version:

Functionality for creating and working with media resources in the Web Stories editor.

3 lines (2 loc) 302 B
import e from"./getCanvasBlob.js";function t(t){const o=document.createElement("canvas");o.width=t.videoWidth,o.height=t.videoHeight;const i=o.getContext("2d");return i?(i.drawImage(t,0,0,o.width,o.height),e(o)):Promise.resolve(null)}export{t as default}; //# sourceMappingURL=getImageFromVideo.js.map