> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# extractImageThumb

> Function extractImageThumb in the Baileys API.

> **extractImageThumb**(`bufferOrFilePath`, `width`): `Promise`\<\{ `buffer`: `any`; `original`: \{ `height`: `any`; `width`: `any`; }; }>

Defined in: [src/Utils/messages-media.ts:135](https://github.com/WhiskeySockets/Baileys/blob/master/src/Utils/messages-media.ts#L135)

## Parameters

### bufferOrFilePath

`string` | `Buffer`\<`ArrayBufferLike`> | `Readable`

### width

`number` = `32`

## Returns

`Promise`\<\{ `buffer`: `any`; `original`: \{ `height`: `any`; `width`: `any`; }; }>
