KayK
Deno2y ago
Kay

Get image data from automated download

I have this page which displays a render using threejs and renders it into a png and downloads it. i need that image to use it in a canvas from deno-canvas but when i download it using this package it returns this
'C:\Users\titul\AppData\Local\Temp\deno_dwldf3d5cf300f407d23/E:\Arcunis\recipeImageMaker\stone.png'

code where i download it:|
import { download } from "https://deno.land/x/download@v2.0.2/mod.ts";
export default async function generateBlock(block: String) {
    await download("http://localhost:8000/renderer/index.html?material=" + block, {file: Deno.cwd() + "\\stone.png"});
}
Was this page helpful?