This is an additional component to the core image library that adds support for the BMP format.
Library is available as composer repository and can be installed using the following command in a root of your project.
composer require bic-engine/image-bmp
$factory = new \Bic\Image\Factory();
$factory->extend(new \Bic\Image\BMP\BitMapDecoder());
// After adding the decoder, you can use the *.bmp reading
$images = $factory->fromPathname('path/to/image.bmp');
Bit Depth | Compression | Availability |
---|---|---|
8 bits | RGB | |
16 bits | RGB | |
24 bits | RGB | ✓ |
32 bits | RGB | ✓ |
X bits | RLE4 | |
X bits | RLE8 | |
X bits | BITFIELDS | |
X bits | JPEG | |
X bits | PNG | |
X bits | CMYK | |
X bits | CMYK + RLE4 | |
X bits | CMYK + RLE8 |