Change the folder base thumbnail ❔

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
jesped
Member
Member
Posts: 150
Joined: 2005-02-07, 03:28 UTC

Change the folder base thumbnail ❔

Post by *jesped »

How can I change the folders base thumbnail for a different one? I mean the yellow folder image.

Image: https://i.postimg.cc/rs0fzYZx/image.png

Right now in Windows 11 it displays only half of one thumb from the files inside the folder and it even has aliasing/alpha blending problems in the edges...
User avatar
jesped
Member
Member
Posts: 150
Joined: 2005-02-07, 03:28 UTC

Re: Change the folder base thumbnail ❔

Post by *jesped »

Also, I am using a custom blue folder icon for the folders, but TC is not using neither my custom blue folder icon nor the system's own yellow folder icon

Image: https://i.postimg.cc/pT8ZHnmJ/image.png

Because the system's yellow folder icon in Explorer doesn't have a pixelated resolution and aliasing/alpha blending problems like it shows in TC...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Change the folder base thumbnail ❔

Post by *ghisler(Author) »

These are loaded from Windows via OLE2, so unfortunately you will get the same as in Explorer.
Author of Total Commander
https://www.ghisler.com
User avatar
jesped
Member
Member
Posts: 150
Joined: 2005-02-07, 03:28 UTC

Re: Change the folder base thumbnail ❔

Post by *jesped »

ghisler(Author) wrote: 2024-02-15, 08:19 UTC These are loaded from Windows via OLE2, so unfortunately you will get the same as in Explorer.
Loaded from where/which one exactly? I can change Windows icons using Resource Hacker or Customizer God.

Windows Explorer properly shows up my customized blue folders, and the few it still displays in yellow are high resolution and with proper edge alpha blending/antialiasing, unlike the one displayed in TC...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Change the folder base thumbnail ❔

Post by *ghisler(Author) »

From the IThumbnailProvider interface: GetThumbnail.
Author of Total Commander
https://www.ghisler.com
User avatar
jesped
Member
Member
Posts: 150
Joined: 2005-02-07, 03:28 UTC

Re: Change the folder base thumbnail ❔

Post by *jesped »

ghisler(Author) wrote: 2024-02-15, 14:49 UTC From the IThumbnailProvider interface: GetThumbnail.
No, I mean... where exactly is this yellow folder icon? which .dll .res .mun or whatever is it taken from?

Image: https://i.postimg.cc/J0crkK2Y/image.png
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Change the folder base thumbnail ❔

Post by *ghisler(Author) »

That's not an icon, it's a thumbnail returned by Windows. It should be the same as in Explorer when you use "Large icons" or "Extra large icons".
Author of Total Commander
https://www.ghisler.com
User avatar
jesped
Member
Member
Posts: 150
Joined: 2005-02-07, 03:28 UTC

Re: Change the folder base thumbnail ❔

Post by *jesped »

This is how they look in Windows file Explorer: Image: https://i.postimg.cc/GhXrnBwD/image.png

And this is how that exact same folder looks in TC: Image: https://i.postimg.cc/52jJ4xbR/image.png

As you can see they look nothing alike...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Change the folder base thumbnail ❔

Post by *ghisler(Author) »

Looks like Explorer isn't using IThumbnailProvider any more, otherwise it would get the same results as Total Commander. Unfortunately there is no documentation of what it is using now, probably some internal code copied and modified from the IThumbnailProvider.
Author of Total Commander
https://www.ghisler.com
User avatar
jesped
Member
Member
Posts: 150
Joined: 2005-02-07, 03:28 UTC

Re: Change the folder base thumbnail ❔

Post by *jesped »

They are icons. It uses 2 icons from the c:\Windows\SystemResources\imageres.dll.mun library:

One for the back of the folder (Icon Group's number 5), which I changed to a blue one:
Image: https://i.postimg.cc/nL4BZ3NR/image.png

and a different one for the front part of the folder (Icon Group's number 6):
Image: https://i.postimg.cc/hjKxG9BS/image.png

which I changed to an empty icon, so the full thumbnail from inside the folder is displayed:
Image: https://i.postimg.cc/FRbMyX8y/image.png
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Change the folder base thumbnail ❔

Post by *ghisler(Author) »

I see - so it seems that IThumbnailProvider always uses the unchanged icons, while Explorer uses the changed ones.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Change the folder base thumbnail ❔

Post by *petermad »

2ghisler(Author)
How come - jesped says he has modified the imageres.dll.mun - where would IThumbnailProvider find the unmodified icons then? - from one of the WinSxS subfolders? ( here on my Windows 10 it is: C:\Windows\WinSxS\amd64_microsoft-windows-imageres_31bf3856ad364e35_10.0.19041.3636_none_515539f6ad3a7a6d )

Maybe jesped could try and replace his C:\Windows\WinSxS\amd64_microsoft-windows-imageres_31bf3856ad364e35_10.0.19041.3636_none_515539f6ad3a7a6d\imageres.dll.mun with his modified imageres.dll.mun
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
jesped
Member
Member
Posts: 150
Joined: 2005-02-07, 03:28 UTC

Re: Change the folder base thumbnail ❔

Post by *jesped »

Just found out they work ok in TC64...

So where is TC32 getting them from?
User avatar
jesped
Member
Member
Posts: 150
Joined: 2005-02-07, 03:28 UTC

Re: Change the folder base thumbnail ❔

Post by *jesped »

Using Stardock's IconPackager to change the icons make them work both in TC64 and TC32.

Thanks for your time!
User avatar
jesped
Member
Member
Posts: 150
Joined: 2005-02-07, 03:28 UTC

Re: Change the folder base thumbnail ❔

Post by *jesped »

Argh, problem not fully solved yet...

I used IconPackager, Customizer God, FileTypesMan and ResourceHacker and changed all the icons in shell32.dll.mun and imageres.dll.mun in c:\Windows\SystemResources\, and the icons are showing up correctly in Explorer, but TC keeps displaying the yellow ones no matter what... :roll:

Image: https://i.postimg.cc/hGJN7PfJ/image.png

Where does TC gets these compressed icons from?
Post Reply