A simple web-based tool for viewing and processing raw Bayer image files in various formats.
- Support for multiple bit-depth raw formats (8/10/12/14/16-bit)
- Packed and unpacked format support
- Customizable image dimensions and stride
- Multiple Bayer pattern options (RGGB, BGGR, GRBG, GBRG)
- Simple Optical Black (OB) subtraction and Auto White Balance (AWB)
- Image zoom and pan controls
- Drag-and-drop interface for easy file loading
- In-browser demosaicing and display
- 10-bit packed: 4 pixels stored in 5 bytes
Where A, B, C, and D represent four consecutive 10-bit pixel values.
Each pixel is stored in 16-bit words (little-endian byte order), with unused high bits set to zero, except for 8-bit format which uses one byte per pixel.
- 8-bit: PIX_FMT_Sxxxx8
- 10-bit: PIX_FMT_Sxxxx10 (16-bit words, little-endian)
- 12-bit: PIX_FMT_Sxxxx12 (16-bit words, little-endian)
- 14-bit: PIX_FMT_Sxxxx14 (16-bit words, little-endian)
- 16-bit: PIX_FMT_Sxxxx16 (16-bit words, little-endian)
- Open the HTML file in a web browser
- Enter the image width, height, and stride (bytes per row)
- Select the Bayer pattern and format
- (Optional) Enable OB subtraction and/or AWB
- Drag and drop your raw image file or click to select
- Use mouse wheel to zoom, click and drag to pan
This tool is designed for educational and testing purposes. It may not be suitable for processing large image files or for production use.

