Skip to content

imwritemulti

Image codecsfunctionOpenCV 5.0.0
import { imwritemulti } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSfilename, img, params
FUNCTIONimwritemulti
RETURN TYPEboolean
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Encode and save multiple images to a supported multi-page format in the virtual filesystem. Return whether encoding succeeded.

imwritemulti(filename: EmbindString, img: MatVector, params: IntVector): boolean;
2 available overloads
imwritemulti(filename: EmbindString, img: MatVector): boolean;
imwritemulti(filename: EmbindString, img: MatVector, params: IntVector): boolean;
filename

filename argument (EmbindString).

img

img argument (MatVector).

params

params argument (IntVector).

Returns

The boolean result.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.