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.18.5/deps/imagick.ts";

Constructors

new
private
ImageMagick()

Properties

private
optional
api: ImageMagickApi
private
readonly
loader: (wasmLocationOrData?: string | ByteArray) => Promise<void>

Methods

_initialize(wasmLocationOrData?: string | ByteArray): Promise<void>

Static Methods

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