Detecting image files in quick view/lister with no file ext

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
SkipR
Junior Member
Junior Member
Posts: 71
Joined: 2008-03-27, 10:39 UTC
Location: W. Australia

Detecting image files in quick view/lister with no file ext

Post by *SkipR »

I frequently have files that have NO EXTENSION. (Example OPERA browser cache files have no extension and some are image fles). Is it possible when I open quick view panel (CTL-Q) that TC checks for a 4 bytes sequence in the selected file and then displays it as a jpg image - how do I configure this?

I know you can code something like:
.... ([6]="J" & [7]="F" & [8]="I" & [9]="F") )

in the [ListerPlugins] section of wincmd.ini but don't know the rest of coding I need.

TC 8.x 32bit, irfanview and several other plugins installed.

Thanks in advance.
Skip
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This detect string is used by Total Commander to decide whether to call the plugin or not. However, it depends on the plugin whehter it tries to open the file or not.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

E.g. Imagine plugin is able to detect images by contents so I can see Opera *.tmp files like images when they are really images.
User avatar
ND
Member
Member
Posts: 150
Joined: 2006-04-10, 16:24 UTC
Location: Sibiu, RO

Post by *ND »

wincmd.ini wrote:[ListerPlugins]
0=%COMMANDER_PATH%\Plugins\wlx\Imagine\Imagine.wlx
0_detect="MULTIMEDIA"
aNDreas Bolotă
The truth always carries the ambiguity of the words used to express it. (Frank Herbert, God Emperor of Dune)
Post Reply