Closed Inaztm closed 2 years ago
npm i -g editly
npm i editly@latest
Load image:
const createImage = (fabric, imagePath) => new Promise((resolve, reject) => { fabric.Image.fromURL(imagePath, resolve) }) const imagePath = 'file://' + path.join(__dirname, `../frames/frame-${frame}.png`) const image = await createImage(fabric, imagePath) canvas.add(image)
But image dont render
consle output image object:
klass { filters: [], cacheKey: 'texture520', _element: HTMLImageElement {}, _originalElement: HTMLImageElement {}, width: 1920, height: 1080 }
npm i -g editly
ornpm i editly@latest
Load image:
But image dont render
consle output image object: