[Solved/Fixed] Lister tolerant image/file format detection

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

User avatar
petermad
Power Member
Power Member
Posts: 14823
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Sir_SiLvA
This is because TC analysizes the Header of the file and sees that its NOT an JPEG
I would think so too - but then I don't understand that the ImgView plugin comes up with an error message:
---------------------------
error
---------------------------
Crash in plugin ImgView.wlx:

External exception EEDFADE
---------------------------
OK Annuller
---------------------------
Followed by a message that is generated by TC itself (if I press Escape, not Enter):
---------------------------
Total Commander
---------------------------
Cannot change Visible in OnShow or OnHide.
Please report this error to the Author,
with a description of what you were doing when this error occured!
Continue execution?
---------------------------
Ja Nej
---------------------------
And if "TC analysizes the Header of the file", how come that some people here (Lefteous and Horst.Epp) can see the file in SGViewer :?:
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

I think Lister should not analyse any file headers.
Once I asked Chisler to add EMZ/WMZ formats support.
This is an ususlly gzipped emf/wmf file with cutted original extension (name.emz/name, name is emf file).
These files creates MS Word when saving file with pics as HTML and in Word's HTML saving options enabled VML.
Well, so Christian said that this cannot be implemented because of Lister cannot recoginze format of file if it has no extension.
I think this is valid for files with any extension too.
For your case maybe this can help:

Code: Select all

[Lister]
IviewAdditionalTypes=*.jpg
If not - I think there is a bug in Lister.
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

DrShark wrote:I think Lister should not analyse any file headers.
Agree. This may be OK, if maybe another viewer could show the file, but not, if it's the last chance to show or not show the file (like in the case of IV/XNV).
For your case maybe this can help:

Code: Select all

[Lister]
IviewAdditionalTypes=*.jpg
Good idea, thanks. This works, when the file is renamed to *.jpg_ (and IviewAdditionalTypes is set accordingly).
Unfortunately the picture is only displayed with file name *.jpg_ - NOT with *.jpg (even with IviewAdditionalTypes=*.jpg). :|
If not - I think there is a bug in Lister.
Agree. Other workarounds are still welcome until there is a solution. :)
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Found a workaround...

Post by *StatusQuo »

2Lefteous:
Lefteous wrote:Using the the Lister plug-in SGViewer your test image is displayed fine.
Now I found out, why SGViewer wasn't displaying the file on my system: without ijl15.dll it doesn't display it, after activating the use of this library the file is also displayed by SGViewer.
This is a good workaround, as long as the file is still not passed to XNView/IrfanView.
StatusQuo wrote:
DrShark wrote:If not - I think there is a bug in Lister.
Agree. Other workarounds are still welcome until there is a solution. :)
2Mod:
Bug enough to move the thread?
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2StatusQuo
Now I found out, why SGViewer wasn't displaying the file on my system: without ijl15.dll it doesn't display it, after activating the use of this library the file is also displayed by SGViewer.
This is a good workaround, as long as the file is still not passed to XNView/IrfanView.
Yes I'm using this library together with SGViewer.
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

StatusQuo wrote:2Mod:
Bug enough to move the thread?
Sorry, I didn't wrote a link to report here.
http://www.ghisler.ch/board/viewtopic.php?t=15651
This is not a bug, but Ghisler will try to solve the problem.
User avatar
petermad
Power Member
Power Member
Posts: 14823
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

... why SGViewer wasn't displaying the file on my system: without ijl15.dll it doesn't display it...
Thanks for that info - now it also works in my SGViewer :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

Fixed in TC 7.01: using this workaround now the problematic files can also be displayed in Xn/IrfanView :) :

Code: Select all

[Lister]
IviewAdditionalTypes=*.jpg_ *.jpg
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
Post Reply