Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Change image according to extension (Read 1161 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Change image according to extension

Hello friends.
Does anyone know if there is any way to put the images of the songs according to their extension?
Just like Winamp does: MP3 with one icon, FLAC with a different icon, M3U with another, etc...
Thank you

Re: Change image according to extension

Reply #1
Hi there,

Are you talking about showing images in the player, or setting file type associations in Windows Explorer?

To show in the player, you could use an Album Art Viewer element and right-click to set it to 'Disc' (assuming you are not using that for anything) and then setup the external images in Preferences > Display > under Album Art > Disc tab, like so -

Code: [Select]
$if($stricmp($ext(%filename_ext%),FLAC),C:\Foobar2000\profile\icons\flac.ico)
$if($stricmp($ext(%filename_ext%),MP3),C:\Foobar2000\profile\icons\mp3.ico)

^ etc, add a line for each file type, change the extension, and path to your foobar icons.

Since I always use a portable install, I believe that does not naturally install the file type ICO files in the 'profile\icons' folder - I guess you need a standard install for that. However, you can open the installer with an archive app like 7-Zip to extract the ICO files and place them in the appropriate folder.

Re: Change image according to extension

Reply #2
^ etc, add a line for each file type, change the extension, and path to your foobar icons.

After getting sleep it occurs to me that maybe it could just be a single line -

Code: [Select]
C:\Foobar2000\profile\icons\$ext(%filename_ext%).ico



Re: Change image according to extension

Reply #3
Hi, friend. Thanks for your answer.
Yes, what I would like is to set file type associations in windows explorer.
I have already located the address of the "Icons" folder. (E:\Program Files\Foobar2000\profile\icons\flac.ico)
But I don't have much experience and I don't know exactly how and where to put what you tell me:
Code: [Select]
$if($stricmp($ext(%filename_ext%),FLAC),C:\Foobar2000\profile\icons\flac.ico).
Or this:
Code: [Select]
C:\Foobar2000\profile\icons\$ext(%filename_ext%).ico
Please, where do I have to put that and how.
Thanks.

Re: Change image according to extension

Reply #4
No, that code was if you wanted the icons shown in the player.

If you want icons in Windows Explorer, that is a Windows setting, but firstly you could try in foobar going File menu > Preferences > Shell Integration > and see if the option 'Register supported file formats on startup' is checked, or click the text "Manage file type associations" - I think that should open Windows settings where you can set foobar2000 as default music player.

 

Re: Change image according to extension

Reply #5
Hi, friend.
Yes, I have Foobar as the default player, and "File Type Association" is enabled as well.
Well, then a file for example M3U or FLAC, I will always see it with the same icon as MP3 ??, there is no way to change them in Foobar ??.
I assume you know Winamp. Winamp brings an option in the preferences where you can associate different icons for each type of file.
Thank you