WEBP in Lister

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Stefan2, white, sheep, Hacker

Post Reply
dantesoft
Junior Member
Junior Member
Posts: 29
Joined: 2005-06-06, 15:55 UTC

WEBP in Lister

Post by *dantesoft » 2015-09-26, 14:54 UTC

From the Lister Help, regarding viewing options:
4. Image If possible, the file is shown as a bitmap image. Depending on the file extension, the file is loaded as a bitmap with the internal bmp viewer, or with the help of Irfanview.
I can view WEBP files just fine in Irfanview, but they decode like they’re binary in Lister.

Can I make them viewable with F3 in Total Commander?

User avatar
Horst.Epp
Power Member
Power Member
Posts: 3374
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp » 2015-09-26, 16:26 UTC

From the Help:
IviewAdditionalTypes=
Additional file types which should be passed to Irfanview/Xnview for conversion
Example: *.xyz *.abc

iana
Senior Member
Senior Member
Posts: 342
Joined: 2010-07-27, 22:00 UTC

Post by *iana » 2015-09-28, 01:33 UTC

passing them to irfan/xnview should work, but you can also try imagine it needs an extra webp decoder for webp support
get imagine from here
http://totalcmd.net/plugring/imagine.html

the webp plugins
http://www.nyam.pe.kr/dev/imagine/download/plugin/Imagine_Plugin_WebP_0.0.8.zip for 32
http://www.nyam.pe.kr/dev/imagine/download/plugin/x64/Imagine_Plugin_WebP_x64_0.0.8.zip for x64 versions of imagine

for extra imagine plugins see the author's web page (they're not at totalcmd.net)
http://www.nyam.pe.kr/

dantesoft
Junior Member
Junior Member
Posts: 29
Joined: 2005-06-06, 15:55 UTC

Post by *dantesoft » 2015-09-29, 13:25 UTC

Horst.Epp wrote:From the Help:
IviewAdditionalTypes=
Additional file types which should be passed to Irfanview/Xnview for conversion
Example: *.xyz *.abc
Thanks! Adding that in the [Lister] section of wincmd.ini did the trick (I have IrfanView addins installed, which bring WEBP support).

PS: Finally saw there's the ShrinkBitmap=2 option there :)

User avatar
MichelBeauchamp
Junior Member
Junior Member
Posts: 4
Joined: 2018-02-04, 22:14 UTC
Location: Notre-Dame-de-la-Merci (QC) Canada

Re: WEBP in Lister

Post by *MichelBeauchamp » 2019-08-02, 01:30 UTC

OK... thought I would try this myself since I am living this problem even 4 years down the road with the latest TC version.

As proposed here, modifying the wincmd.ini at the [Lister] position did not work... I tried a few mods to no avail. And then it hit me, why do we stick the mod down there if we are trying to modify IrfanView (since that is what TC is calling for).

So instead, I re-opened a fresh version of wincmd.ini (I had saved a copy before modifying anything), and went around the Irfanview area of the wincmd.ini file and added the line thus :

RTF=1
IView=1
IViewPath=C:\Program Files\IrfanView\i_view32.exe
IviewAdditionalTypes=*.webp
HTMLasText=1

And it worked right there and then. Verified it was not just the webp file I was testing that was running true, I accessed a full folder of webp files on my drive and all of them had a static preview thumbnail appear in TC, and each file became viewable in Lister as a static picture (the files are all active, gif style, files).

I am not a programmer, and I know that the position isn't always critical within a *.ini file, but it seems that in this case, it is! Hope this helps others! Best Regards.... :D

P.S. Make sure you make the appropriate modifications in the IrfanView settings (you need a plugin in IrfanView for it to read "webby" webp and webm files, before doing the upper mentioned modification in TC for it to fetch IrfanView when required).

Post Reply