-
Notifications
You must be signed in to change notification settings - Fork 306
Description
Examining a PC bitmap(.bmp) in OS/2 1.x format reports an incorrect image size.
I don't have any knowledge about file headers so sorry if this is WONTFIX or not helpful information. Windows bmp version 3 files will have their information output correctly. Both GraphicsMagick 1.3.45 and file-5.46 from darwinsys display correct information from the header of the example file I used.
Output from exiv2:
File name : /INFIN3.bmp
File size : 921626 Bytes
MIME type : image/x-ms-bmp
Image size : 31457920 x 1572865
Example images attached in zip format, downloaded from archiveteam's fileformat sample section links.
To Reproduce
Command line: exiv2 <OS/2 1.x format image file>
For the example image, file outputs:
PC bitmap, OS/2 1.x format, 640 x 480 x 24, cbSize 921626, bits offset 26
graphicsmagick identify outputs:
BMP 640x480+0+0 DirectClass 8-bit 900.0Ki 0.000u 0m:0.000001s
Expected behavior
Correct image size displayed in the output, 640x480.
Desktop
- OS and version: Arch Linux 6.15.5-arch1-1 (64-bit)
- Exiv2 version and source: exiv2 0.28.5 from archlinux extra repository which is sourced from the archives in this repo
Exiv2/exiv2/archive/v0.28.5/exiv2-0.28.5.tar.gz - Compiler and version: (e.g., Gcc 12.2, Clang 14.0.0, MSVC 2022)
- Compilation mode and/or compiler flags: build source compilation information