1.7.2: PNG to BMP conversion fails
Posted: Sat Aug 31, 2024 4:59 am
XnView MP: 1.7.2 x64
OS: Windows 10 v22H2 x64
I need to convert a PNG file to BMP. XnView MP has no trouble converting this file to any other format. The result is satisfactory. Depending on the format, XnView MP may add a white background or downgrade colors a little, but the result is always satisfactory, except when the target is BMP. In the case of the BMP, the target image is corrupted.
To reproduce:
1. Extract the PNG file I've attached
2. Open XnView MP
3. Right-click my PNG file and select Batch Convert...
4. On the output tab, set the format to BMP.
5. Click the Convert button.
Actual behavior (bug): XnView MP generates a 9.76 MB file that has lost its alpha channel (transparency). This image has a hideous black background and some of its colors are lost. Most Microsoft Windows apps cannot open this file.
Expected behavior: I expect a 19.52 MB file that looks exactly like my PNG file, bit by bit. Please note that the BMP format supports 32-bit color pixels (24-bit color plus transparency) exactly like PNG.
OS: Windows 10 v22H2 x64
I need to convert a PNG file to BMP. XnView MP has no trouble converting this file to any other format. The result is satisfactory. Depending on the format, XnView MP may add a white background or downgrade colors a little, but the result is always satisfactory, except when the target is BMP. In the case of the BMP, the target image is corrupted.
To reproduce:
1. Extract the PNG file I've attached
2. Open XnView MP
3. Right-click my PNG file and select Batch Convert...
4. On the output tab, set the format to BMP.
5. Click the Convert button.
Actual behavior (bug): XnView MP generates a 9.76 MB file that has lost its alpha channel (transparency). This image has a hideous black background and some of its colors are lost. Most Microsoft Windows apps cannot open this file.
Expected behavior: I expect a 19.52 MB file that looks exactly like my PNG file, bit by bit. Please note that the BMP format supports 32-bit color pixels (24-bit color plus transparency) exactly like PNG.