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

x/lume/deps/imagick.ts>MagickImageCollection

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class MagickImageCollection
extends Array<MagickImage>
Re-export
import { MagickImageCollection } from "https://deno.land/x/lume@v1.16.1/deps/imagick.ts";

Constructors

new
private
MagickImageCollection()

Methods

private
addImages(images: number, settings: MagickSettings)
private
attachImages()
private
checkResult(images: number, exception: Exception): number
private
detachImages()
private
mergeImages<TReturnType>(layerMethod: LayerMethod, func: (image: IMagickImage) => TReturnType | Promise<TReturnType>): TReturnType | Promise<TReturnType>
private
throwIfEmpty()
_use<TReturnType>(func: (images: IMagickImageCollection) => TReturnType): TReturnType
_use<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>
dispose(): void
flatten<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType
flatten<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>
merge<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType
merge<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>
montage<TReturnType>(settings: MontageSettings, func: (image: IMagickImage) => TReturnType): TReturnType
montage<TReturnType>(settings: MontageSettings, func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>
mosaic<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType
mosaic<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>
read(fileName: string, settings?: MagickReadSettings): void
read(array: Uint8Array, settings?: MagickReadSettings): void
write<TReturnType>(func: (data: Uint8Array) => TReturnType, format?: MagickFormat): TReturnType
write<TReturnType>(func: (data: Uint8Array) => Promise<TReturnType>, format?: MagickFormat): Promise<TReturnType>