[**simplex-chat**](README.md) *** [simplex-chat](README.md) / [core](Namespace.core.md) / resizeImage # Function: resizeImage() ## Call Signature > **resizeImage**(`image`, `size`): `Promise`\<`Buffer`\<`ArrayBufferLike`\>\> Defined in: [src/core.ts:129](../core.ts#L129) Resize image to the app size limit: JPEG or PNG for an image, a data URI for a preview ### Parameters #### image `ArrayBuffer` \| `Uint8Array`\<`ArrayBufferLike`\> #### size [`Image`](core.Enumeration.ImageSize.md#image) ### Returns `Promise`\<`Buffer`\<`ArrayBufferLike`\>\> ## Call Signature > **resizeImage**(`image`, `size`): `Promise`\<`string`\> Defined in: [src/core.ts:130](../core.ts#L130) Resize image to the app size limit: JPEG or PNG for an image, a data URI for a preview ### Parameters #### image `ArrayBuffer` \| `Uint8Array`\<`ArrayBufferLike`\> #### size [`ProfilePreview`](core.Enumeration.ImageSize.md#profilepreview) \| [`MessagePreview`](core.Enumeration.ImageSize.md#messagepreview) ### Returns `Promise`\<`string`\> ## Call Signature > **resizeImage**(`image`, `size`): `Promise`\<`string` \| `Buffer`\<`ArrayBufferLike`\>\> Defined in: [src/core.ts:131](../core.ts#L131) Resize image to the app size limit: JPEG or PNG for an image, a data URI for a preview ### Parameters #### image `ArrayBuffer` \| `Uint8Array`\<`ArrayBufferLike`\> #### size [`ImageSize`](core.Enumeration.ImageSize.md) ### Returns `Promise`\<`string` \| `Buffer`\<`ArrayBufferLike`\>\>