Changing image within folder icon

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
hologram1
Posts: 6
Joined: 20 Nov 2021 21:00

Changing image within folder icon

Post by hologram1 »

Sorry for the noob question, I spent over an hour trying to figure this out but I can't seem to get it :oops:

I want my folder icons to show image contents by default like in file explorer, example: https://i.imgur.com/Y0sYwsL.png
XYplorer shows the folder icon like this: https://i.imgur.com/yPi0fuK.png

I do have "Show folder thumbnails" on which shows a single image, but it uses images I don't want to have on the icon.
In addition to the file explorer style, how could I go about changing the png/jpeg used on the folder? Screenshot: https://i.imgur.com/cwX4uqs.png

Hope this is clear. Thank you.

WirlyWirly
Posts: 195
Joined: 21 Oct 2020 23:33
Location: Through the Looking-Glass

Re: Changing image within folder icon

Post by WirlyWirly »

I believe the image displayed is the first image when you sort the folder by name.

So what you could do is have an image titled "_cover.png" in the root of the target folder and it should show up as the cover image, at-least it does for me.

If you want to see multiple thumbnails, then you'll probably have to make a tool that will generate a bunch of thumbnails for the contents of a folder, combine them into a collage, and then save it as "_cover.png". Sounds like a hassle but if you use python then I believe MPV and pillow would do the job.

jupe
Posts: 2788
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Changing image within folder icon

Post by jupe »

If you want to keep the XYplorer style thumbnails then read this info that is contained in the help file:
Folder Thumbnails. The file list supports Folder Thumbnails. In Thumbnails view, folders display a
thumbnail of any file in the folder named "folder.*" where * is any of the following image extensions:
jpg, jpeg, png, gif (looked for in that order).
If no "folder.*" is found, the alphabetically first *.jpg (*.jpeg, *.png, *.gif) image in the folder is taken
(if any).
Alternatively, if you want the Windows Explorer style folder thumbnails then you need to set this tweak:

FolderThumbsShell=1

follow these instructions exactly on how to tweak: https://www.xyplorer.com/faq-topic.php?id=tweak

hologram1
Posts: 6
Joined: 20 Nov 2021 21:00

Re: Changing image within folder icon

Post by hologram1 »

jupe wrote: 21 Nov 2021 03:27 If you want to keep the XYplorer style thumbnails then read this info that is contained in the help file:
Folder Thumbnails. The file list supports Folder Thumbnails. In Thumbnails view, folders display a
thumbnail of any file in the folder named "folder.*" where * is any of the following image extensions:
jpg, jpeg, png, gif (looked for in that order).
If no "folder.*" is found, the alphabetically first *.jpg (*.jpeg, *.png, *.gif) image in the folder is taken
(if any).
Alternatively, if you want the Windows Explorer style folder thumbnails then you need to set this tweak:

FolderThumbsShell=1

follow these instructions exactly on how to tweak: https://www.xyplorer.com/faq-topic.php?id=tweak
Thank you! That tweak is what I needed :D
Hmm wish I could retain the file names, only a mild inconvenience though.
WirlyWirly wrote: 21 Nov 2021 03:18 I believe the image displayed is the first image when you sort the folder by name.

So what you could do is have an image titled "_cover.png" in the root of the target folder and it should show up as the cover image, at-least it does for me.

If you want to see multiple thumbnails, then you'll probably have to make a tool that will generate a bunch of thumbnails for the contents of a folder, combine them into a collage, and then save it as "_cover.png". Sounds like a hassle but if you use python then I believe MPV and pillow would do the job.
I'm not versed in programming, but the tweak did the trick.

Post Reply