[11.00] Can't view certain BMP files
Moderators: Hacker, petermad, Stefan2, white
[11.00] Can't view certain BMP files
Recently I purchased a new pocket oscilloscope that can save screenshots to BMP files. These files are opened perfectly in MS Paint, but cannot be viewed in Lister: it shows them as text. Is it a TC fault or something wrong with the files?
We are not so S.M.A.R.T. as we imagine...
Re: [11.00] Can't view certain BMP files
Examples:
https://drive.google.com/file/d/1YrfHGZHuojslGQwAVcfdQLE97uaGMzqz/view?usp=sharing
https://drive.google.com/file/d/1YsvBzrsorXLcIF8y28WvOFC_tBRtlkhc/view?usp=sharing
https://drive.google.com/file/d/1YrfHGZHuojslGQwAVcfdQLE97uaGMzqz/view?usp=sharing
https://drive.google.com/file/d/1YsvBzrsorXLcIF8y28WvOFC_tBRtlkhc/view?usp=sharing
We are not so S.M.A.R.T. as we imagine...
Re: [11.00] Can't view certain BMP files
Confirmed for 32-bit TC only. 64-bit TC works fine.
Pressing 8 (Explorer Preview) does display them.
Pressing 8 (Explorer Preview) does display them.
Re: [11.00] Can't view certain BMP files
Yes, the 64-bit version works fine.
PS, in 32-bit TC, these files can be viewed in mode "8" (via Explorer), but not in mode "4" (Graphics/Multimedia). The only temporary solution is to set mode "8" permanently for this file type.
PS, in 32-bit TC, these files can be viewed in mode "8" (via Explorer), but not in mode "4" (Graphics/Multimedia). The only temporary solution is to set mode "8" permanently for this file type.
We are not so S.M.A.R.T. as we imagine...
Re: [11.00] Can't view certain BMP files
Same here. The files can be showed with the Imagine and the slister plugins (32 and 64bit), but NOT with the PhotoViewer plugin (32 and 64bitConfirmed for 32-bit TC only. 64-bit TC works fine.
In 32bit TC I can also see the images with the SGViewer and imgView plugins.
License #524 (1994)
Danish Total Commander Translator
TC 11.50b4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1383a
TC 3.60b4 on Android 6, 13 & 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.50b4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1383a
TC 3.60b4 on Android 6, 13 & 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 49100
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [11.00] Can't view certain BMP files
Both images show up just fine here on Windows 11, also with Total Commander 32-bit (internal viewer, no plugins). Can you provide more information?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [11.00] Can't view certain BMP files
Windows 11 Pro, build 22621.2134
Total Commander 32-bit with new ini (so internal viewer, no plugins).
Total Commander 32-bit with new ini (so internal viewer, no plugins).
- ghisler(Author)
- Site Admin
- Posts: 49100
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [11.00] Can't view certain BMP files
Did you choose menu Plugins -> Internal?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [11.00] Can't view certain BMP files
That does the same as pressing 4, nothing.
Please note that it is specific for the BMP files given by siealex.
Re: [11.00] Can't view certain BMP files
Confirmed bug too. Win10 22H2.
32 bit TC Lister in internal variant of viewing of exactly these files given by siealex - cannot interpret
them as a simple windows BMP format and so tries to show them only as a Binary (mode 2) text.
64 bit Lister does the job - it shows them as a picture.
P.S. IF I will use option "IrfanView/XnView to load graphics other than BMP" - then and 32 bit Lister
will show these BMP properly.
32 bit TC Lister in internal variant of viewing of exactly these files given by siealex - cannot interpret
them as a simple windows BMP format and so tries to show them only as a Binary (mode 2) text.
64 bit Lister does the job - it shows them as a picture.
P.S. IF I will use option "IrfanView/XnView to load graphics other than BMP" - then and 32 bit Lister
will show these BMP properly.
#146217 personal license
- ghisler(Author)
- Site Admin
- Posts: 49100
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [11.00] Can't view certain BMP files
Seems like the 32-bit version sent the image to Irfanview to load it after failing to load it internally.
I have checked the problem in the debugger, and it seems that the image has an invalid header size.
See bitmapinfoheader structure.
The decoder in the 64-bit version doesn't seem to care, so I will change the Delphi code to look for header sizes >=40 bytes.
I have checked the problem in the debugger, and it seems that the image has an invalid header size.
See bitmapinfoheader structure.
The image reports a header size of 56 bytes, which seems to include the size of the color table. The actual header size is 40 bytes.biSize
Specifies the number of bytes required by the structure. This value does not include the size of the color table or the size of the color masks, if they are appended to the end of structure.
The decoder in the 64-bit version doesn't seem to care, so I will change the Delphi code to look for header sizes >=40 bytes.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [11.00] Can't view certain BMP files
Not confirmed.
TC11 32bit with fresh.ini, W10 22H2
Usual bmp are displayed with F3.
The OP's two images are actually not shown. But what do they have for an identifier: BMHX instead of BMP. BMP is probably evaluated by the internal lister, while others (wrongly?) don't. I have no time enough at the moment to check, wether BMHX is a well known identifier or not.
TC11 32bit with fresh.ini, W10 22H2
Usual bmp are displayed with F3.
The OP's two images are actually not shown. But what do they have for an identifier: BMHX instead of BMP. BMP is probably evaluated by the internal lister, while others (wrongly?) don't. I have no time enough at the moment to check, wether BMHX is a well known identifier or not.
Last edited by JOUBE on 2023-08-15, 09:37 UTC, edited 7 times in total.
Re: [11.00] Can't view certain BMP files
I don't know if we have to bother so much with poor export implementations of some equipment that don't care about the standards. I've have seen a lot of these who cannot be properly read but with their own software, even if it seems to be a common filetype. I guess you cannot keep up with all malformed file types. Maybe tomorrow another user complaints about another shady file it cannot read. Just find and use a plugin that is the most "forgiving" and that's it... Just my 2 cents.
Re: [11.00] Can't view certain BMP files
2JOUBE
so only 'BM' does matter! All other bytes explain another things:
https://en.wikipedia.org/wiki/BMP_file_format#Bitmap_file_header
http://www.ue.eti.pg.gda.pl/fpgalab/zadania.spartan3/zad_vga_struktura_pliku_bmp_en.html
You will be surprised as I see - but proper signature is the only first 2 byte!But what do they have for an identifier: BMHX instead of BMP.
so only 'BM' does matter! All other bytes explain another things:
https://en.wikipedia.org/wiki/BMP_file_format#Bitmap_file_header
http://www.ue.eti.pg.gda.pl/fpgalab/zadania.spartan3/zad_vga_struktura_pliku_bmp_en.html
#146217 personal license