---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/media/engines/sharp/functions/fromSharp.md
---

# Function: fromSharp()

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

Defined in: [src/batteries/media/engines/sharp.ts:173](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/media/engines/sharp.ts#L173)

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

## Parameters

| Parameter | Type             | Description                      |
| --------- | ---------------- | -------------------------------- |
| `sharp`   | *typeof* `sharp` | The sharp function you imported. |

## Returns

[`MediaEngine`](../../../contracts/interfaces/MediaEngine.md)

The engine.
