Example of declaring a format codec that uses DOM canvas instance which must be provided by the user.
import jimp from 'jimp' class JimpProxy implements FormatProxyClass { async create() { return new JimpFormatCodec(Jimp) } }
Generated using TypeDoc
Example of declaring a format codec that uses DOM canvas instance which must be provided by the user.
import jimp from 'jimp' class JimpProxy implements FormatProxyClass { async create() { return new JimpFormatCodec(Jimp) } }