Issue with Thumbnail View: thumbnails of png files not showed

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
gunterotto
Junior Member
Junior Member
Posts: 17
Joined: 2012-05-29, 05:03 UTC

Re: Issue with Thumbnail View: thumbnails of png files not showed

Post by *gunterotto »

ghisler(Author) wrote: 2024-01-23, 11:28 UTC 2. Install Irfanview and set the path to it in the Lister's configuration.
This simple solution worked fine; JPEG and PNG thumbnails seem to display properly in OneDrive now. I do my darndest to keep addons and plugins to a minimum but, who knows, there was a time I used IrfanView a lot. Takes me back a decade or so, however!
Thanks for all the help, Total Commander is an awesome and invaluable tool for so many of us!
User license #29286 (1993, v3.53, still have the floppy disk 😁)
User avatar
AntonyD
Power Member
Power Member
Posts: 1554
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: Issue with Thumbnail View: thumbnails of png files not showed

Post by *AntonyD »

2gunterotto
please test suggestion made above by petermad
The default file type list for: "Internal thumbnails from images" (ThumbGdiplusTypes) is: *.jpg *.dng *.arw *.crw *.cr2 *.cr3 *.nef *.orf *.pef *.raf *.rw2
Maybe adding *.jpeg to that list solves the problem
Of course before that - remove Irfan from the Lister's configuration.
#146217 personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Issue with Thumbnail View: thumbnails of png files not showed

Post by *ghisler(Author) »

This only helps when the jpg/jpeg file has a thumbnail stored in the file itself. For example, my phone takes photos with embedded thumbnails, but there are no thumbnails when taking a panorama. And you don't need to remove Irfanview because the topmost method "Internal thumbnails from images" is tried first, then lister plugins, then Explorer, then Irfanview.
Author of Total Commander
https://www.ghisler.com
User avatar
AntonyD
Power Member
Power Member
Posts: 1554
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: Issue with Thumbnail View: thumbnails of png files not showed

Post by *AntonyD »

2ghisler(Author)
If we need to check the behavior described above, then we need to get a negative result, if there is one.
And with your proposal NOT to remove Irfan, we are always guaranteed to get a positive result in the end.
#146217 personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Issue with Thumbnail View: thumbnails of png files not showed

Post by *ghisler(Author) »

Yes, that's my point: The goal is to always get a thumbnail.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Issue with Thumbnail View: thumbnails of png files not showed

Post by *petermad »

2ghisler(Author)
And AntonyD's goal (and mine) in this case was to test whether adding *.jpeg to ThumbGdiplusTypes would solve the specific problem for gunterotto
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
gunterotto
Junior Member
Junior Member
Posts: 17
Joined: 2012-05-29, 05:03 UTC

Re: Issue with Thumbnail View: thumbnails of png files not showed

Post by *gunterotto »

petermad wrote: 2024-01-24, 10:03 UTC 2ghisler(Author)
And AntonyD's goal (and mine) in this case was to test whether adding *.jpeg to ThumbGdiplusTypes would solve the specific problem for gunterotto
Yes, that worked for JPEG, but it did not work for PNG. Odd, may have had an embedded thumbnail? Note that I had to uninstall Irfanview as both thumbnails still worked even after I unchecked "Use Irvanview/Xnview" in Edit/View > Multimedia. (and worked again as soon as I re-installed Irfanview, again without checking the config Multimedia option.)
I appreciate all the effort but no need to go down a rathole for a small problem that has not been an issue for all these years of TC. The workaround is simpler than the fix. Unless, of course, you welcome the challenge! [:-)
User license #29286 (1993, v3.53, still have the floppy disk 😁)
User avatar
AntonyD
Power Member
Power Member
Posts: 1554
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: Issue with Thumbnail View: thumbnails of png files not showed

Post by *AntonyD »

Yes, that worked for JPEG, but it did not work for PNG.
good news, huge thanks for coop-work ;)) And yes PNG does not contains thumbs. Most of the time.
Although the possibility has potentially existed since 2017. When extended EXIF metadata support for this format was approved.
I had to uninstall Irfanview as both thumbnails still worked even after I unchecked "Use Irvanview/Xnview" in Edit/View > Multimedia
VEEEERY strange behavior!
Mr.Ghisler - WHY such case even could arise? Mentioned checkmark does not have any relation to the thumb generation?
You use the calls to IrfanView directly? with assumption that irfan.exe does exist in PATH var.?
#146217 personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Issue with Thumbnail View: thumbnails of png files not showed

Post by *ghisler(Author) »

WHY such case even could arise?
When extracting a thumbnail takes extra long, TC saves the thumbnail image to the thumbnail database. To erase it from there, you need to right click on the file (or selected files) and choose "Re-load selected thumbnails". But uninstalling Irfanview should not have any influence on that...
Author of Total Commander
https://www.ghisler.com
User avatar
jonathanpoulin
Member
Member
Posts: 131
Joined: 2020-12-19, 12:09 UTC
Location: Saint-Marc-des-Carrières, QC Canada
Contact:

Re: Issue with Thumbnail View: thumbnails of png files not showed

Post by *jonathanpoulin »

ghisler(Author) wrote: 2024-01-23, 11:28 UTC I have now checked this in the debugger:
1. For jpg files, Total Commander extracts the thumbnail stored within the image file by itself. This also works in the OneDrive folder.
2. For jpeg and png files, Total Commander calls the OLE function IThumbnailProvider->GetThumbnail when there are no Lister plugins to handle jpeg.
This works for files outside of the OneDrive folder, but inside it returns a strange error code 0x8004B205.
There are almost no results for this code (put in double quotes) on Google, except for "WTS_E_EXTRACTIONPENDING".
This seems to indicate that Windows postponed or cancelled the loading of that thumbnail.
Unfortunately there doesn't seem to be a parameter for IThumbnailProvider->GetThumbnail to force-load the thumbnail.

So your options are:
1. Install a Lister plugin which can extract thumbnails
or
2. Install Irfanview and set the path to it in the Lister's configuration.
Hi,

I recently installed TC 11.50RC2 from scratch on another computer, cleanly and without a Lister plugin which can extract thumbnails.

So, Mr. Ghisler, any update about that and a possible fix for the error 0x8004B205 (that seems to be the source of the problem)?
Thanks,
Jonathan Poulin
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Issue with Thumbnail View: thumbnails of png files not showed

Post by *ghisler(Author) »

No, there doesn't seem to be any documentation on how to react to this error.
Author of Total Commander
https://www.ghisler.com
User avatar
jonathanpoulin
Member
Member
Posts: 131
Joined: 2020-12-19, 12:09 UTC
Location: Saint-Marc-des-Carrières, QC Canada
Contact:

Re: Issue with Thumbnail View: thumbnails of png files not showed

Post by *jonathanpoulin »

ghisler(Author) wrote: 2024-12-19, 10:22 UTC No, there doesn't seem to be any documentation on how to react to this error.
Ok, thanks for the reply. I understand.
Thanks,
Jonathan Poulin
User avatar
jonathanpoulin
Member
Member
Posts: 131
Joined: 2020-12-19, 12:09 UTC
Location: Saint-Marc-des-Carrières, QC Canada
Contact:

Re: Issue with Thumbnail View: thumbnails of png files not showed

Post by *jonathanpoulin »

Hi,

By the way, I just found out a little bug (my post can be moved after confirmation). In Options -> Operation -> Edit/View -> Configure internal viewer... -> Multimedia, the checkbox "Use Irfanview/Xnview to load graphics other than BMP" seems to be not used. In fact, if the path to Irfanview below the checkbox is valid, Irfanview is used no matter if the checkbox is checked or not. I am pretty sure about it. Mr. Ghisler, can you test it?
Thanks,
Jonathan Poulin
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Issue with Thumbnail View: thumbnails of png files not showed

Post by *petermad »

the checkbox "Use Irfanview/Xnview to load graphics other than BMP" seems to be not used.
Not confirmed - maybe it is just another plugin or TC itself that displays the image for you when the checkbow is not activated. What file type(s) have you tested it with?

I tested with a .dds file, which is not supported by TC itself. I used a clean ini file and added i_view32.exe with full path to Listers configuration AND also added *.dds to the field: "Additional Irfanview/Xnview file types". Under this setup the state of the checkbox is used.
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
white
Power Member
Power Member
Posts: 5744
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Issue with Thumbnail View: thumbnails of png files not showed

Post by *white »

petermad wrote: 2024-12-20, 12:37 UTC
the checkbox "Use Irfanview/Xnview to load graphics other than BMP" seems to be not used.
Not confirmed
Also not confirmed.
Post Reply