Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume/deps/cliffy.ts>image

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
function image
import { image } from "https://deno.land/x/lume@v1.17.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