Skip to content
1 min read · 57 words

Function: fromSharp() ​

ts
function fromSharp(sharp: typeof sharp): MediaEngine;

Defined in: src/batteries/media/engines/sharp.ts:234

Adapt an already-configured sharp module (your import, your build flags) to the engine contract — the BYO transformer.

Parameters ​

ParameterTypeDescription
sharptypeof sharpThe sharp function you imported.

Returns ​

MediaEngine

The engine.