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

x/lume/deps/imagick.ts>ImageMagick

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class ImageMagick
Re-export
import { ImageMagick } from "https://deno.land/x/lume@v1.15.0/deps/imagick.ts";

Constructors

new
private
ImageMagick()

Properties

private
optional
api: ImageMagickApi
private
readonly
loader: Promise<void>

Methods

_initialize(): Promise<void>

Static Methods

read(
color: MagickColor,
width: number,
height: number,
func: (image: IMagickImage) => void,
): void
read(
color: MagickColor,
width: number,
height: number,
func: (image: IMagickImage) => Promise<void>,
): Promise<void>
read(fileName: string, func: (image: IMagickImage) => void): void
read(fileName: string, func: (image: IMagickImage) => Promise<void>): Promise<void>
read(array: Uint8Array, func: (image: IMagickImage) => void): void
read(array: Uint8Array, func: (image: IMagickImage) => Promise<void>): Promise<void>
read(
fileName: string,
func: (image: IMagickImage) => void,
): void
read(
fileName: string,
func: (image: IMagickImage) => Promise<void>,
): Promise<void>
read(
array: Uint8Array,
func: (image: IMagickImage) => void,
): void
read(
array: Uint8Array,
func: (image: IMagickImage) => Promise<void>,
): Promise<void>
readCollection(fileName: string, func: (images: IMagickImageCollection) => void): void
readCollection(fileName: string, func: (images: IMagickImageCollection) => Promise<void>): Promise<void>
readCollection(array: Uint8Array, func: (images: IMagickImageCollection) => void): void
readCollection(array: Uint8Array, func: (image: IMagickImageCollection) => Promise<void>): Promise<void>
readCollection(
fileName: string,
func: (images: IMagickImageCollection) => void,
): void
readCollection(
fileName: string,
func: (images: IMagickImageCollection) => Promise<void>,
): Promise<void>
readCollection(
array: Uint8Array,
func: (images: IMagickImageCollection) => void,
): void
readCollection(
array: Uint8Array,
func: (images: IMagickImageCollection) => Promise<void>,
): Promise<void>
readFromCanvas(canvas: HTMLCanvasElement, func: (image: IMagickImage) => void): void
readFromCanvas(canvas: HTMLCanvasElement, func: (image: IMagickImage) => Promise<void>): Promise<void>

Constructors

new
private
ImageMagick()

Properties

private
optional
api: ImageMagickApi
private
readonly
loader: Promise<void>

Methods

_initialize(): Promise<void>

Static Methods

read(
color: MagickColor,
width: number,
height: number,
func: (image: IMagickImage) => void,
): void
read(
color: MagickColor,
width: number,
height: number,
func: (image: IMagickImage) => Promise<void>,
): Promise<void>
read(fileName: string, func: (image: IMagickImage) => void): void
read(fileName: string, func: (image: IMagickImage) => Promise<void>): Promise<void>
read(array: Uint8Array, func: (image: IMagickImage) => void): void
read(array: Uint8Array, func: (image: IMagickImage) => Promise<void>): Promise<void>
read(
fileName: string,
func: (image: IMagickImage) => void,
): void
read(
fileName: string,
func: (image: IMagickImage) => Promise<void>,
): Promise<void>
read(
array: Uint8Array,
func: (image: IMagickImage) => void,
): void
read(
array: Uint8Array,
func: (image: IMagickImage) => Promise<void>,
): Promise<void>
readCollection(fileName: string, func: (images: IMagickImageCollection) => void): void
readCollection(fileName: string, func: (images: IMagickImageCollection) => Promise<void>): Promise<void>
readCollection(array: Uint8Array, func: (images: IMagickImageCollection) => void): void
readCollection(array: Uint8Array, func: (image: IMagickImageCollection) => Promise<void>): Promise<void>
readCollection(
fileName: string,
func: (images: IMagickImageCollection) => void,
): void
readCollection(
fileName: string,
func: (images: IMagickImageCollection) => Promise<void>,
): Promise<void>
readCollection(
array: Uint8Array,
func: (images: IMagickImageCollection) => void,
): void
readCollection(
array: Uint8Array,
func: (images: IMagickImageCollection) => Promise<void>,
): Promise<void>
readFromCanvas(canvas: HTMLCanvasElement, func: (image: IMagickImage) => void): void
readFromCanvas(canvas: HTMLCanvasElement, func: (image: IMagickImage) => Promise<void>): Promise<void>