lister not showing avif images with spaces in the filename

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Van den Steen Eddy
Junior Member
Junior Member
Posts: 3
Joined: 2004-12-29, 14:24 UTC

lister not showing avif images with spaces in the filename

Post by *Van den Steen Eddy »

In lister (tab Multimedia):
use irfanview is checked (path is set to irfanview 4.72 x64)
*.avif is set as additional file type

In tcmd I press F3 on an avif file (with the name a.avif) and lister shows the image.
If I rename that file to a name with spaces in it - for example "a b.avif" - and I press F3 listers shows the binary content and I'm unable to switch to "' 4 image/multimeda".

Any idea what could be the reason for this?

TCMD x64 11.55 RC5
User avatar
white
Power Member
Power Member
Posts: 5964
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: lister not showing avif images with spaces in the filename

Post by *white »

Confirmed. Good question. It seems to happen when the filename contains a space, the extension starts with avi and the format is an .avif file.
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Re: lister not showing avif images with spaces in the filename

Post by *Gral »

white wrote: 2025-06-06, 23:49 UTC Confirmed. Good question. It seems to happen when the filename contains a space, the extension starts with avi and the format is an .avif file.
Nope. Extension starts with "a" - any word can't start with 3 letters, just ONE. :D
User avatar
white
Power Member
Power Member
Posts: 5964
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: lister not showing avif images with spaces in the filename

Post by *white »

Gral wrote: 2025-06-07, 04:49 UTC Nope. Extension starts with "a" - any word can't start with 3 letters, just ONE. :D
I never said "letter", but if it confuses you then perhaps this is clearer:
It seems to happen when the filename contains a space, the extension starts with the text "avi" and the format is an .avif file.
BTW, I suspect that the issue is caused by a bug in Irfanview or Irfanview's AVIF plugin.
User avatar
tuska
Power Member
Power Member
Posts: 4111
Joined: 2007-05-21, 12:17 UTC

Re: lister not showing avif images with spaces in the filename

Post by *tuska »

Hmm, I made a copy of two *.avif image files and then renamed them to “a b.avif”

The preview was possible for both files with TC IrfanView Plugin 1.17 (x86, x64)
and IrfanView 4.72 - 64 bit and 32 bit as well as TC 11.55RC5 (x64, x86).

First, the preview was displayed in the “Imagine” plugin (*.AVIF;*.xcf;*.heic;*.mng -> Imagine.wlx),
then (after pressing the digit 4) in the “Internal (no plugins)” plugin, and finally, after pressing the digit 4
in Lister (irfanview).

EDIT:
A preview of the file “a b c.avif” cannot be displayed with IrfanView.
(It can be displayed with the “Imagine” plugin).

EDIT2:
After working several times previously(!),
it is now NO LONGER possible to preview the file “a b.avif” in Lister (irfanview)!
Additional Irfanview/Xnview file types:
*.icl *.ico *.ccx *.dds *.heic *.xcf *.rw2 *.svg *.wdp *.webp *.arw *.avif
(Over the last two days, I've had several TC crashes related to plugins, such as plugin removal
and today plugin installation).
Last edited by tuska on 2025-06-07, 11:11 UTC, edited 2 times in total.
User avatar
white
Power Member
Power Member
Posts: 5964
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: lister not showing avif images with spaces in the filename

Post by *white »

tuska wrote: 2025-06-07, 10:12 UTC The preview was possible for both files with TC IrfanView Plugin 1.17 (x86, x64)
and IrfanView 4.72 - 64 bit and 32 bit as well as TC 11.55RC5 (x64, x86).
This thread is not about using a plugin, but using the Irfanview program directly. Total Commander starts Irfanview with option /hidden and sends the filename with WM_COPYDATA to the hidden Irfanview window. Irfanview then sends the entire decoded image (as a BMP) via WM_COPYDATA to TC.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7007
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: lister not showing avif images with spaces in the filename

Post by *Horst.Epp »

Error not confirmed !
If I remove *.avif from TC settings (Additional IrfanView file types:) the file is shown as text.
Adding *.avif shows the correct image in IrfanView Internal from Lister.
The name tested is "AVIF Test picture.avif"
IrfanView version is 4.72 64-Bit
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC6 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.3 x64
User avatar
white
Power Member
Power Member
Posts: 5964
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: lister not showing avif images with spaces in the filename

Post by *white »

Horst.Epp wrote: 2025-06-07, 10:41 UTC Error not confirmed !
Hmm.. If I test it on Windows Sandbox, it works too. But it doesn't work on my real system. I tried with new ini and tried removing Irfanview and installing it again, also in a folder with write access. Didn't matter. I haven't been able to pinpoint what is causing this.
User avatar
beb
Power Member
Power Member
Posts: 592
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: lister not showing avif images with spaces in the filename

Post by *beb »

I can view any .avif (either with spaced or solid paths/names) in IrfanView using Alt+F3.
However, it displays only a file under the cursor and cannot see other files in a folder (previous/next navigation is inactive).
The latter is true not only for the IrfanView under Total Commander but also when I run it in standalone mode, though.

Note: Imagine doesn't have any issues here, both as a TC plugin or a standalone app.

Also:
ghisler(Author) wrote: 2022-06-26, 08:54 UTC Irfanview doesn't return a preview image for some file types to TC, mostly videos. Maybe it considers AVIF a video format because it can contain multiple images as a sequence? I haven't tested it myself because I don't have any AVIF files.
I use some sample files from here: https://github.com/link-u/avif-sample-images
Last edited by beb on 2025-06-07, 15:35 UTC, edited 1 time in total.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 16
User avatar
white
Power Member
Power Member
Posts: 5964
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: lister not showing avif images with spaces in the filename

Post by *white »

beb wrote: 2025-06-07, 15:28 UTC I can view any .avif (either with spaced or solid paths/names) in IrfanView using Alt+F3.
This thread isn't about when you use Irfanview as an alternative viewer. It's about the option "Use Irfanview/Xnview to load graphics other than BMP".
User avatar
beb
Power Member
Power Member
Posts: 592
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: lister not showing avif images with spaces in the filename

Post by *beb »

white wrote: 2025-06-07, 15:33 UTC It's about the option "Use Irfanview/Xnview to load graphics other than BMP".
I've made the quoted message because the said option is active in my TC setup, but it doesn't work.
By the way, the thread title doesn't reflect the claimed narrowed target thematics so far.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 16
User avatar
white
Power Member
Power Member
Posts: 5964
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: lister not showing avif images with spaces in the filename

Post by *white »

beb wrote: 2025-06-07, 15:41 UTC By the way, the thread title doesn't reflect the claimed narrowed target thematics so far.
But the question described in the first post is very specific. Can you test that and post the result?
User avatar
tuska
Power Member
Power Member
Posts: 4111
Joined: 2007-05-21, 12:17 UTC

Re: lister not showing avif images with spaces in the filename

Post by *tuska »

white wrote: 2025-06-07, 15:33 UTC It's about the option "Use Irfanview/Xnview to load graphics other than BMP".
Configuration > Options... > Edit/View > Configure internal viewer... > tab "Multimedia" >
- 🔲 Use Irfanview/Xnview for graphics other than BMP
- Additional Irfanview/Xnview file types: *.icl *.ico *.ccx *.dds *.heic *.xcf *.rw2 *.svg *.wdp *.webp *.arw *.avif

If the option “Use Irfanview/Xnview for graphics other than BMP” is UNCHECKED,
then these files with spaces can be displayed with Lister (irfanview) - 32 Bit & 64 Bit:
a b.avif
a b c.avif

The mostly encrypted text that was previously displayed in the
“Lister - [C:\totalcmd\...\a b.avif]” window no longer appears with this setting,
but instead the “Play” button, etc. appears in the footer.
User avatar
white
Power Member
Power Member
Posts: 5964
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: lister not showing avif images with spaces in the filename

Post by *white »

I could narrow it down further. It only happens on drives where 8dot3 name creation is enabled. (That's why the issue did not occur on Windows Sandbox.)
I looked with process monitor at what i_view64.exe does and saw that it first uses long filename and then short filename. In my case the short filename "171892~1.AVI" was used. Notice the filename extension. This is probably causing a file type mismatch by the Irfanview plugin, causing the decoding to fail.
User avatar
AntonyD
Power Member
Power Member
Posts: 1660
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: lister not showing avif images with spaces in the filename

Post by *AntonyD »

I have completely different questions: How did you manage to achieve any display at all through this combination? Total + IrfanView?
Total, when trying to watch without plugins in the 'bare' version, shows textual view. When trying to connect and view through IrfanView,
it attempts to open this file as a VIDEO file, switching to 4 viewing modes in the Lister! But since there is no real sequence of video
frames, no duration, it simply shows a black rectangle. It seems like this is the first and only frame.
IrfanView itself is capable of showing this file.
#146217 personal license
Post Reply