---
title: "bufferToPixelDataBrowser | Client js | Api client"
description: "Documentation for MapTiler Client"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Function bufferToPixelDataBrowser

-   bufferToPixelDataBrowser(buff: ArrayBuffer): Promise<[PixelData](https://docs.maptiler.com/client-js/api/types/index.PixelData/)\>[](#buffertopixeldatabrowser)
    
    Browser function to decode an image file buffer into valid pixel data
    
    #### Parameters
    
    -   buff: ArrayBuffer
    
    #### Returns Promise<[PixelData](https://docs.maptiler.com/client-js/api/types/index.PixelData/)\>
    
    -   Defined in [tiledecoding.ts:72](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/tiledecoding.ts#L72)
