Module

x/lume/deps/cliffy.ts>image

🔥 Static site generator for Deno 🦕
Very Popular
Latest
function image
import { image } from "https://dotland.deno.dev/x/lume@v2.4.2/deps/cliffy.ts";

Create image.

Parameters

buffer: string | ArrayBuffer

Image buffer.

optional
options: ImageOptions

Image options.

const response = await fetch("https://deno.land/images/hashrock_simple.png");
const imageBuffer: ArrayBuffer = await response.arrayBuffer();
console.log(
ansi.image(imageBuffer),
);

Returns

string