Export a 24-bit BMP and verify its background
Admin ·
Make 24-bit BMP files with an explicit background color. The browser reads the file and creates its download on your device.
Select the background before exporting
Consider a 65 × 41 transparent PNG. Choose white as the background. A fully transparent corner becomes white. A half-transparent red pixel blends with white, and an opaque blue region stays blue. Check those three regions after opening the bitmap.
Calculate the pixel storage
A 65-pixel row uses 195 color bytes. BMP pads this to 196 bytes for alignment. At 41 rows, the pixel array takes 8,036 bytes. A 54-byte file and information header brings this worked output to 8,090 bytes. Rotating the image changes the width and may change the row padding.
Plan disk space for a 24-bit bitmap
A 1920-pixel-wide row takes 5,760 bytes before the header. At 1,080 rows, the pixel data alone takes 6,220,800 bytes. A smaller source JPG can legitimately produce a bitmap of about 6.2 MB.
For a cutout, choose the matte before export. Look at the edge against the background where the bitmap will be used. A matte chosen for a white form can leave a pale fringe on a dark toolbar.
Common questions
How is a transparent pixel written to BMP?
The converter places each image over the selected solid color before writing the 24-bit RGB pixels.
Why did the BMP grow compared with a JPG?
An uncompressed 24-bit BMP stores three bytes per pixel plus row padding and its headers. JPEG compresses repeated and similar image details.