PonchoP
Denoβ€’4y agoβ€’
5 replies
Poncho

How to import the Image class to Deno Fresh?

I'm trying to access an image's naturalHeight and naturalWidth. But when I construct the object new Image() I get a Reference Error that it is not defined. I figured I could import it from a preact module or something similar to (import {Image} from 'preact/image), but I simply couldn't find out from which module to import it.
Was this page helpful?