Image shown as binary when pressing F3 on a search results panel

English support forum

Moderators: Hacker, petermad, Stefan2, white

fm-xvid
Junior Member
Junior Member
Posts: 73
Joined: 2007-10-09, 05:28 UTC

Image shown as binary when pressing F3 on a search results panel

Post by *fm-xvid »

PNG files appear as binary in the lister when opening from "Find Files" window. In totalcmd itself the images appear normally.

Image: https://i.imgur.com/9BySWsM.png

Pressing '4' on the lister has no effect, the check mark jumps backto '2'.

Would appreciate if anyone knows how to fix this.

Below is my lister section.

Code: Select all

[Lister]
Font1=Consolas,-13
Font2=Terminal,-12,255
Font3=@Arial Unicode MS,-13
textwidth=95
binwidth=75
SearchGoBack=3
BmpStartup=1
Multimedia=1
RTF=1
IView=1
IViewPath=%PROGRAMS%\IrfanView\i_view64.exe
HTMLasText=1
LinkBraces=1
Wrap=1
Maximized=0
x=223
y=132
dx=866
dy=582
Startup=16
ShrinkBitmap=2
Caret=1
LeftMargin=200
RightMargin=200
TopMargin=200
BottomMargin=200
ModeByfileType=0
PreviewHandlers=0
ThumbnailProviders=1
IViewAdditionalTypes=*.jpg *.jpeg *.jpe *.gif *.bmp *.tif *.tiff *.png *.pcx *.tga *.webp
PreloadInputFilters64=
PreloadFilterType64=1
FgColor=14474460
BgColor=3549952
FgSelColor=4339200
BgSelColor=8616805
LinkColor=13798182
User avatar
beb
Power Member
Power Member
Posts: 580
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: Image shown as binary when pressing F3 on a search results panel

Post by *beb »

> IViewPath=%PROGRAMS%\IrfanView\i_view64.exe

%PROGRAMS% is a non-standard variable, is it actually working?
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
fm-xvid
Junior Member
Junior Member
Posts: 73
Joined: 2007-10-09, 05:28 UTC

Re: Image shown as binary when pressing F3 on a search results panel

Post by *fm-xvid »

@beb, I have added %PROGRAMS% in the envar settings and it expands to a folder where I keep portable apps.

Also as mentioned the image appears normally when opening from totalcmd's main window.
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: Image shown as binary when pressing F3 on a search results panel

Post by *Gral »

Just guessing...
Is it standalone search invoked by custom command?
Configured with TOTALCMD.EXE (32-bit) ?
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Image shown as binary when pressing F3 on a search results panel

Post by *petermad »

2fm-xvid
Does it work if you remove *.png form the IViewAdditionalTypes= line?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
fm-xvid
Junior Member
Junior Member
Posts: 73
Joined: 2007-10-09, 05:28 UTC

Re: Image shown as binary when pressing F3 on a search results panel

Post by *fm-xvid »

Gral wrote: 2023-02-23, 12:30 UTC Just guessing...
Is it standalone search invoked by custom command?
Configured with TOTALCMD.EXE (32-bit) ?
I call it via the hotkey (Alt+F7) after altering it in wincmd.ini

Code: Select all

[Shortcuts]
A+F7=cm_SearchStandalone
AS+F7=cm_SearchFor
fm-xvid
Junior Member
Junior Member
Posts: 73
Joined: 2007-10-09, 05:28 UTC

Re: Image shown as binary when pressing F3 on a search results panel

Post by *fm-xvid »

petermad wrote: 2023-02-23, 15:03 UTC 2fm-xvid
Does it work if you remove *.png form the IViewAdditionalTypes= line?
Yes, this method works! Though I am curious as to why this happened?

In any case, I commented out the whole "IViewAdditionalTypes=" so that it doesn't affect other images.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Image shown as binary when pressing F3 on a search results panel

Post by *ghisler(Author) »

Yes, this method works! Though I am curious as to why this happened?
It tells TC to use Irfanview for png files. Without this line, they will be decoded internally with Microsoft GDI+ libraries.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Image shown as binary when pressing F3 on a search results panel

Post by *petermad »

2fm-xvid
Yes, this method works!
So now we just have to figure out why it doesn't work when IrfanView is supposed to show the file.

Try reinstateting the line:
IViewAdditionalTypes=*.jpg *.jpeg *.jpe *.gif *.bmp *.tif *.tiff *.png *.pcx *.tga *.webp

And then change the line:
IViewPath=%PROGRAMS%\IrfanView\i_view64.exe

to use the path with the environment part substituted with the real path (e.g. c:\dir\dir\)
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
fm-xvid
Junior Member
Junior Member
Posts: 73
Joined: 2007-10-09, 05:28 UTC

Re: Image shown as binary when pressing F3 on a search results panel

Post by *fm-xvid »

ghisler(Author) wrote: 2023-02-24, 09:39 UTC
Yes, this method works! Though I am curious as to why this happened?
It tells TC to use Irfanview for png files. Without this line, they will be decoded internally with Microsoft GDI+ libraries.
Thank you the explanation, Herr ghisler!
fm-xvid
Junior Member
Junior Member
Posts: 73
Joined: 2007-10-09, 05:28 UTC

Re: Image shown as binary when pressing F3 on a search results panel

Post by *fm-xvid »

petermad wrote: 2023-02-24, 09:58 UTC 2fm-xvid
So now we just have to figure out why it doesn't work when IrfanView is supposed to show the file.

Try reinstateting the line:
IViewAdditionalTypes=*.jpg *.jpeg *.jpe *.gif *.bmp *.tif *.tiff *.png *.pcx *.tga *.webp

And then change the line:
IViewPath=%PROGRAMS%\IrfanView\i_view64.exe

to use the path with the environment part substituted with the real path (e.g. c:\dir\dir\)
I reinstated the line and changed the path to the real path and the problem came up again.

As mentioned before %PROGRAMS% expand to a Dropbox folder where I keep portable apps.

i.e. %PROGRAMS% => %USERPROFILE%\Dropbox\Apps => C:\Users\<username>\Dropbox\Apps

I am now thinking of bypassing IrfanView totally and use totalcmd's internal decoder.
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Image shown as binary when pressing F3 on a search results panel

Post by *petermad »

2fm-xvid
Hmm, just peculiar, because I have no problem using IrfanView from the Find Files dialog. I even tried both 32bit and 64bit ifranView (version 4.62)
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: Image shown as binary when pressing F3 on a search results panel

Post by *Gral »

Are you sure?
I get this bug if i configure TC this way.
1. Add

Code: Select all

IViewAdditionalTypes=*.jpg *.jpeg *.jpe *.gif *.bmp *.tif *.tiff *.png *.pcx *.tga *.webp
2. Use separate search!
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Re: Image shown as binary when pressing F3 on a search results panel

Post by *sqa_wizard »

petermad wrote:And then change the line:
IViewPath=%PROGRAMS%\IrfanView\i_view64.exe
Note: It is important to add doublequotes twice at ini entry, if path includes a space!
IViewPath=""%PROGRAMS%\IrfanView\i_view64.exe""
#5767 Personal license
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Image shown as binary when pressing F3 on a search results panel

Post by *petermad »

2Gral
2. Use separate search!
That's it - I forgot about this prerequisite of a separate search. With Separate search I can reproduce the bug.

It does not matter whether i use cm_SearchStandalone or %COMMANDER_EXE% /S=F to start the separate search.

It happens using IrfanView 32bit and 64bit and with Xnview.

It happens whether or not there is used an environment variable in the IViewPath= line.

While testing I use RestrictInterface=6144 to disable all plugins.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply