Page 1 of 1

OS/2 BMP variant with 16 byte DIB header not recognized

Posted: Sat Jun 29, 2019 12:45 pm
by jenderek
some days ago i handle some OS/2 BMP variant. An example of such a
case is the graphic pal8os2v2-16.bmp of the BMP Suite.

When i run XnView Classic version 2.48 all of these examples are
not displayed and i get an message like

Format of the file <pal8os2v2-16.bmp> could not determined

XnView can open the Microsoft BMP variant and also the OS/2 variant
with 64 byte DIB, but is not able to open that OS/2 bitmap
variant. Surprisingly the Firefox web browser can open such
bitmaps. Also the Windows graphic tool IrfanView can handle such
bitmaps.

The information about this variants is found on Wikipedia page about
BMP format. See https://en.wikipedia.org/wiki/BMP_file_format

According to Wikipedia the DIB header use a format named
OS22XBITMAPHEADER. This format stores only the first 16 byte of the
OS/2 variant with 64 bytes. The remaining 48 bytes are assumed to be
zero values.

I hope that this OS/2 variant will be implemented in a future version
of XnView tool. This should not be so difficult, because the OS/2
variant with 64 byte header is recognized and displayed.

Re: OS/2 BMP variant with 16 byte DIB header not recognized

Posted: Thu Jul 04, 2019 8:46 am
by xnview
could you send me the file?

example of OS/2 BMP variant with 16 byte DIB header

Posted: Tue Oct 29, 2019 5:05 pm
by jenderek
example of OS/2 BMP variant with 16 byte DIB header

Hello Pierre,
Sorry i have not see your request for an example in the past.
So now i send an example pal8os2v2-16.bmp in appended archive
pal8os2v2-16.zip.
This example is also mentioned on Wikipedia about BMP file format.
This file is part of Jason Summers BMP test suite found as
archive bmpsuite-2.5.zip on site with URL:
http://entropymine.com/jason/bmpsuite/

The graphic tool IrfanView is able to open such BMP files and is able to
display example correctly.

I hope that this OS/2 variant will be implemented in a future version
of XnView tool.

Thanks

Re: example of OS/2 BMP variant with 16 byte DIB header

Posted: Tue Nov 05, 2019 2:52 pm
by xnview
ok, this format will be added