---
title: "bufferToPixelDataBrowser | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> 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/sdk-js/api-reference/types/PixelData/)\>[](#buffertopixeldatabrowser)
    
    Browser function to decode an image file buffer into valid pixel data
    
    #### Parameters
    
    -   buff: ArrayBuffer
    
    #### Returns Promise<[PixelData](https://docs.maptiler.com/sdk-js/api-reference/types/PixelData/)\>
