v145 · Web APIs · BMP Demo
BMP Demo
Shows the BMP format variants and which are affected by the Chrome 145 removal — standard BMP images still load; only JPEG-in-BMP and PNG-in-BMP are removed.
BMP variant support in Chrome 145
| BMP variant | biCompression value | Chrome 145 | Notes |
|---|---|---|---|
| Standard BMP (RGB) | BI_RGB (0) |
Works | Uncompressed pixel data — normal BMP |
| RLE-compressed BMP | BI_RLE8 (1) / BI_RLE4 (2) |
Works | Run-length encoded — valid BMP variant |
| JPEG-in-BMP | BI_JPEG (4) |
Removed | Non-standard extension; printer-only origin |
| PNG-in-BMP | BI_PNG (5) |
Removed | Non-standard extension; printer-only origin |
migration: preferred formats
// If you have JPEG-in-BMP or PNG-in-BMP files, convert them:
// Option 1: Use the original JPEG or PNG directly
// (the embedded JPEG/PNG is extractable — it's valid compressed data)
// Option 2: Convert to WebP (best for web)
// ffmpeg -i input.bmp output.webp
// Option 3: Convert to standard JPEG or PNG
// ffmpeg -i input.bmp output.jpg
// ffmpeg -i input.bmp output.png
// Web image format recommendations:
// - Photos: JPEG or WebP
// - Line art / transparency: PNG or WebP
// - Animations: WebP or AVIF
// - Legacy compatibility: JPEG / PNG
// - Avoid BMP entirely for web — it lacks compression
see also
scenario focus
Select a scenario to focus its rendered example and summary.