WEBP in Lister

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

Moderators: white, Hacker, petermad, Stefan2

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

WEBP in Lister

Post by *dantesoft »

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: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

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: 345
Joined: 2010-07-27, 22:00 UTC

Post by *iana »

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 »

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 »

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).
User avatar
gewone
Junior Member
Junior Member
Posts: 66
Joined: 2008-03-06, 17:37 UTC

Re: WEBP in Lister

Post by *gewone »

Late bump ...

I'd like to F3/View my .webp files in Imagine (not IrfanView).

I'm running v1.1.1 (dated just last year) and from Imagine change-log it seems WebP format has been supported since back in 2015 or something like that, so it should be a problem, should it? Or is it perhaps limited to the "external" Imagine software, i.e. it will be a headache getting to work with the TC plugin?

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

Re: WEBP in Lister

Post by *Horst.Epp »

For me Imagine works fine to display webp files.
There is the file WebP.plg64 in the Plugin sub-dir of Imagine.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: WEBP in Lister

Post by *petermad »

2gewone
You can download a webp plugin for imagine here: https://www.nyam.pe.kr/dev/imagine/download/plugin/x64/Imagine_Plugin_WebP_x64_0.0.8.zip

The plugin has to be placed a \Plugin\WebP subdirectory of the directory where your Imagine.wlx64 is located.

See also: https://www.nyam.pe.kr/dev/imagine/
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
dindog
Senior Member
Senior Member
Posts: 315
Joined: 2010-10-18, 07:41 UTC

Re: WEBP in Lister

Post by *dindog »

petermad wrote: 2021-10-01, 14:47 UTC 2gewone
You can download a webp plugin for imagine here: https://www.nyam.pe.kr/dev/imagine/download/plugin/x64/Imagine_Plugin_WebP_x64_0.0.8.zip

The plugin has to be placed a \Plugin\WebP subdirectory of the directory where your Imagine.wlx64 is located.

See also: https://www.nyam.pe.kr/dev/imagine/
unfortunately this plugin provide no support for animation webp
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: WEBP in Lister

Post by *petermad »

2dindog

There is a, not yet published, version of the PhotoViewer plugin here: http://progman13.wincmd.ru/downloads/wlx_PhotoViewer_Beta_1.zip that supports animated webp files in Lister.
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
dindog
Senior Member
Senior Member
Posts: 315
Joined: 2010-10-18, 07:41 UTC

Re: WEBP in Lister

Post by *dindog »

petermad wrote: 2021-10-28, 13:02 UTC 2dindog

There is a, not yet published, version of the PhotoViewer plugin here: http://progman13.wincmd.ru/downloads/wlx_PhotoViewer_Beta_1.zip that supports animated webp files in Lister.
Quick test, nice plugin, I've make it 1st for image file now.
RndUser
Junior Member
Junior Member
Posts: 9
Joined: 2018-12-19, 14:55 UTC

Re: WEBP in Lister

Post by *RndUser »

petermad wrote: 2021-10-28, 13:02 UTC 2dindog

There is a, not yet published, version of the PhotoViewer plugin here: http://progman13.wincmd.ru/downloads/wlx_PhotoViewer_Beta_1.zip that supports animated webp files in Lister.
This plugin is great, but is there an option to automatically resize low resolution images to fit the window size?
User avatar
deus-ex
Power Member
Power Member
Posts: 969
Joined: 2003-02-10, 17:45 UTC

Re: WEBP in Lister

Post by *deus-ex »

RndUser wrote: 2021-11-02, 09:10 UTCThis plugin is great, but is there an option to automatically resize low resolution images to fit the window size?
Unfortunately, a permanent setup for this is not available. When viewing an image press 'F' to fit the image to the screen, all subsequent viewed images will be fitted to the screen automatically. Exiting the plugin requires repressing the 'F' key on the next load of the plugin.
RndUser
Junior Member
Junior Member
Posts: 9
Joined: 2018-12-19, 14:55 UTC

Re: WEBP in Lister

Post by *RndUser »

I see, thanks for your answer.
ferdilouw
New Member
New Member
Posts: 1
Joined: 2022-05-03, 01:52 UTC

Re: WEBP in Lister

Post by *ferdilouw »

Hi @MichelBeauchamp

Thanks - it solved my problem too: Wanting to use Ctrl-Q and F3 to view WEBP images.
I edited my c:\Users\[username]\AppData\Roaming\GHISLER\wincmd.ini
as below, restarted TC and it works.
(I already had IrfanView with the WEBP extension installed and linked.)
MichelBeauchamp wrote: 2019-08-02, 01:30 UTC
As proposed here, modifying the wincmd.ini at the [Lister] position did not work...

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

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